On Nov 29, 3:02 pm, Alex Kostikov <[email protected]> wrote: > I want Ctrl+C to copy selected text to clipboard and switch to command > mode. > The line bellow populates clipboard but doesn't do the switching to > command mode. Why? > > vnoremap <C-c> "+y<ESC> >
This works for me, except that it beeps at me. The reason it beeps at me, is that the 'y' operator in visual mode already returns to command/ normal mode automatically, making the final <Esc> redundant. If you're expecting to still be in visual mode after a "+y, then perhaps you're running with 'insertmode' set? Or in "easy" mode? If 'insertmode' is set, Vim is usually in insert mode instead of command/ normal mode, and rather than using <Esc> to go to command/normal mode, you use <C-L>. -- You received this message from the "vim_use" 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
