vi

How can I do a CTRL + A and a CTRL + C?


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?


Solution

  • You can do:

    ggVGY
    

    and then open another file in vi and paste with p.

    However, before posting a question, try to search first. See for example Yank entire file