kisielk / vigo

Vi in Go
Other
168 stars 17 forks source link

Add documentation for modes #46

Open yarbelk opened 10 years ago

yarbelk commented 10 years ago

Each of the modes should have som documentation. What they are are pretty obvious to a VI/VIM user for some of them (NormalMode, InsertMode, VisualMode) others are not so clear: WindowMode, TextObjectMode.

also gives a change to validate if they should all be modes (no clue - don't quite grok Window and TextObjectMode yet)

kisielk commented 10 years ago

A mode is basically a set of UI rules. Window mode is what happens when you use ctrl-w and handles all follow-up keystrokes until it is exited. Similarly for TextObject, it's entered after pushing a key that expects a text object afterwards.