Copy and paste between two files in VIM
- Open first file in VIM
- Split window
ctrl-w, s
- Open second file
:e filename
- Yank
y
and putp
text as usual - the buffer is shared between both windows - Navigate between open windows using
ctrl-w, UP/DOWN
(the up or down keys, not text!)