When entering visual mode from insert mode <c-o>v vim is in "(insert) VISUAL" mode and will reenter insert mode after a finished operator. However there seems to be another "INSERT VISUAL" mode that can be entered like so:
let g:modal = "" function! Modal() if g:modal != "" execute "normal! ".g:modal let g:modal = "" endif endfunction autocmd! InsertEnter * call Modal() nnoremap ,i :<c-u>let g:modal = "v"<cr>i nnoremap ,s :<c-u>let g:modal = "gh"<cr>i now ,i in normal mode will enter an insert mode, where <esc> goes to visual mode with the just inserted text selected. Now this seems useful, but drawing is quite buggy in "INSERT VISUAL" mode. However "INSERT SELECT" entered by ,s seems less useful: the user types some text, press <esc>, now the typed text is selected and will be overwritten by the next thing the user types. Sending ["ex", "normal! v"] over a channel to a vim being in insert mode has the same effect. Are these modes intentional behavior? I can't find them in the documentation. -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.