If I want to copy text from a file in vi to another file, I have to highlight the text, Control-Shift-C it, quit the first file, open the second, and then paste it via Control-Shift-V. It feels like there must be an easier way to do this - that is, keyboard commands only. Any suggestions?
|
|
|||
|
|
|
While editing a file you can use
|
||||
|
|
vim can be set up with X clipboard support. Pass --with-x=yes to configure if your distribution does not bundle vim with X support. By default the X clipboard is available as the * buffer and the X cut board (selection) is available as the " buffer, so selecting a region and typing You can set the default (anonymous) buffer in vim to be the X clipboard by running |
|||
|
|
|
Sure:
Maybe there's a shorter way? |
||||
|
|