3 ms·
I use a simple hack in my .vimrc com -range YY :<line1>,<line2>w! ~/tmp/cnp.txt com PP :r ~/tmp/cnp.txt Then :YY, :PP as appropriate
by ezy 16y ago
I use a simple hack in my .vimrc
com -range YY :<line1>,<line2>w! ~/tmp/cnp.txt
com PP :r ~/tmp/cnp.txt
Then :YY, :PP as appropriate
- ezy 16y agoOh, and this: http://vim.wikia.com/wiki/Copy_and_paste_between_Vim_instances http://vim.wikia.com/wiki/Copy_and_paste_between_Vim_instanc... has various other solutions. Including something I did not know about: You can save and load vim's state in .viminfo, so conceivably, you could yank what you want to yank, :wv in that vim, then :rv! in the other vim and paste from the exact same register or registers. Cute.. and useful for syncing up two vim windows in general.