Tip #356: Quick yank and paste
tip karma |
Rating 4/8, Viewed by 1437
|
created: |
|
October 30, 2002 12:54 |
|
complexity: |
|
basic |
author: |
|
Niels Aan de Brugh |
|
as of Vim: |
|
5.7 |
Since I didn't want to interfere with the standard Vim mappings I removed all the <C-c>, <C-v>, etc. mappings found in the default vimrc. But quickly copy-pasting text is a must, so I added the following keymaps. This is very simple, but it works like a charm.
vmap <C-Space> "ay
nmap <C-Space> "aP
imap <C-Space> <C-o>"ap
nmap <C-c> "ayiw
Niels
My vimrc if you're interested: http://home.student.utwente.nl/n.h.m.aandebrugh/_vimrc
<<Comment Lines according to a given filetype |
Adding a console to gdbvim >>
Additional Notes
|