I need to do a
Ctrl + A, Ctrl + V
to paste in a very long file, but what is the set of commands that can do this action in the most efficient way?
You can do:
ggVGY
and then open another file in vi and paste with p
.
gg
- jump to the beginning of fileV
- select whole lines in visual modeG
- jump to end of fileY
- copy (yank) what you selectedHowever, before posting a question, try to search first. See for example Yank entire file