Live data from Hacker News

VIM Modes Transition Diagram

stevelosh.com

31–37 of 37 posts

Re: VIM Modes Transition Diagram

#32

This diagram doesn't include any of the q-macro system, hardly any of the :commands, and only a very vague box saying "operator" for a large class of actions and motions Vim users are constantly engaging in. In short, this is a woefully incomplete diagram of a summary of a subset of the VIM Mode Transitions. Maybe it could be a start for a serious effort down the line. I've been using Vim as my main editor for over a…

Technically, "recording" isn't a mode.

Re: VIM Modes Transition Diagram

#33
post #31

This is missing the v/V/ctrl-v changes for visual mode type or changing back to normal command mode.

Thanks for pointing that out. I neglected to mention you can transition between the visual modes once you're in one... and I didn't realize you can toggle back out to normal mode by just pressing v, V, ctl-V from visual, visual line and visual block modes respectively.

Re: VIM Modes Transition Diagram

#34
post #32

This diagram doesn't include any of the q-macro system, hardly any of the :commands, and only a very vague box saying "operator" for a large class of actions and motions Vim users are constantly engaging in. In short, this is a woefully incomplete diagram of a summary of a subset of the VIM Mode Transitions. Maybe it could be a start for a serious effort down the line. I've been using Vim as my main editor for over a…

Technically, "recording" isn't a mode.

exactly. This is a "Modes" transition diagram. For example, :commands aren't modes as well.

Re: VIM Modes Transition Diagram

#36
post #31

This is missing the v/V/ctrl-v changes for visual mode type or changing back to normal command mode.

Thanks for pointing that out. I neglected to mention you can transition between the visual modes once you're in one... and I didn't realize you can toggle back out to normal mode by just pressing v, V, ctl-V from visual, visual line and visual block modes respectively.

I just bang on ESC to get back to normal mode.

Re: VIM Modes Transition Diagram

#37
post #15

Earlier quoted context omitted.

Perhaps this is the starting point then? https://gist.github.com/1886716

Yes - just a starting point. My focus was just on mode transitions. I am considering creating other diagrams that focus on other aspects of vim such as operators/motions. I may also create some simplified versions too. (But I am not sure I will try to combine everything into a single diagram...) I admit this one is daunting at first. Keep in mind that it's just an early draft. As I was making notes for myself, it was…

One commenter mentioned that my gp sounded hostile. I didn't intend to (it was late at night). I found this interesting enough to comment on. I hope you have more ideas about how to illustrate a great tool.
Post reply on HN