Skip to content

Instantly share code, notes, and snippets.

@darcyparker
Last active April 25, 2024 17:28
Show Gist options
  • Star 83 You must be signed in to star a gist
  • Fork 14 You must be signed in to fork a gist
  • Save darcyparker/1886716 to your computer and use it in GitHub Desktop.
Save darcyparker/1886716 to your computer and use it in GitHub Desktop.
Vim Modes Transition Diagram in SVG https://rawgithub.com/darcyparker/1886716/raw/eab57dfe784f016085251771d65a75a471ca22d4/vimModeStateDiagram.svg Note, most of the nodes in this graph have clickable hyperlinks to documentation.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sukima
Copy link

sukima commented May 26, 2021

Beautiful! I want this on my wall!

Visitor: "What's that? Looks like a fancy techie thing. Is that something from Star Trek?"

Me: laughs "Not quite, actually it is the state diagram for my favorite text editor Vim."

Visitor: "Whoa!"

(In my head I imagine all my visitors as astute critiques of technical wonder and are easily impressed by my overwhelming technical prowess)

@darcyparker
Copy link
Author

FYI: The Primeagen made a great video / meme about my diagram. https://www.youtube.com/watch?v=E_8B_seg8AI. I had a good laugh when someone emailed me about it and then watched it. Check it out if you haven't already.

I said the same thing about Select Mode when I first discovered it and had to work it into the diagram. I still don't use it today. But I wanted to show all vim modes in the diagram, and I was having fun trying to make the diagram without any crossing lines.

@darcyparker
Copy link
Author

See vim/vim#13091 - A bug about the undocumented mode mentioned in this diagram was just fixed in vim and therefore nvim.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment