Vim's '(insert) VISUAL' mode?

insert, vim

Solution

About the second question: you can switch to normal mode from any other using `<C-\><C-n>`. There are no commands for reliably switching to visual or insert modes this way, but if you need only always switching to normal mode after visual it is sufficient. Note that most of the visual-mode mappings are working in `i<C-o>v` special mode without modifications.

Problem

The "`(insert) VISUAL`" mode can be entered by CTRL+O , v starting from insert mode. This enters visual mode, but is displayed as "`(insert) VISUAL`" from within vim, and pressing Esc from this mode brings you back to insert mode, not normal mode. The "`(insert) VISUAL`" mode is also entered by shifted arrowed keys from insert mode. Two related questions: There does not seem to be much documentation on this special mode. Is there an easy way to search for information about it? (edit: I'm aware of what CTRL+O normally does. The interaction with visual mode seems to be special. The first paragraph was the easiest way to refer to what this mode is in the first place, as I don't know of a searchable name for it.) How do you write `vmap` mappings reliably? Namely, is there a consistent way to leave visual mode and end up in, say normal mode? Or consistently end up in insert mode?

Original source