Copy an entire document in Vi to clipboard
When reading a document with vi on a remote machine over ssh, how can I 'select all' and copy to my local clipboard? I imagine selecting two points in the document and 'yanking' the text - how do I do it?
It would probably work better if you would use scp to copy the file. If you just want a part of the file, you can write out a range of lines or a block.
For example, in vim
will write the lines from 200-400 to a file called fragment. Vim has a shell escape, ":!", so after that you could copy the file "fragment" to your local machine using the scp command.
Re: Copy an entire document in Vi to clipboard
to yank all lines.
|All times are GMT -5. The time now is 10:15 AM.|