On Thursday 17 September 2009, Ben Fritz wrote: > The <CTRL-R>" that John suggests never leaves insert mode, > so the change gets applied to every line when you finally > do. > > Note that you could also use <CTRL-R>0 to always paste the > last yanked text, <CTRL-R>- to paste the last deletion that > was less that a full line, <CTRL-R>a to paste the contents > of register a, <CTRL-R>+ to paste the contents of the > system clipboard, or any number of other special or named > registers. Reading throught :help registers will give you > all of them. Some are more useful than others.
let me add yet another way of pasting which uses mappings i've used for so many years i wanted them in vim -- where shift-insert pastes, control-insert copies, and shift-delete cuts with the following mappings: nmap <S-Insert> "+gP vmap <S-Insert> "-d"+P imap <S-Insert> <C-R>+ cmap <S-Insert> <C-R>+ imap <C-Insert> <C-O>"+y vmap <C-Insert> "+y vmap <S-Del> "+d imap <C-Del> <C-O>daw you can hit shift-insert after your I, which to me is so intuitive i don't have to think about it --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
