Table of Contents

VI

Buffers

To yank/delete into a named buffer, prefix the command with “l where l is the letter of the buffer e.g.

"dyy

And to paste from the buffer do the same e.g.

"dp

Tips

Pasting into VI

A common problem when pasting into Vi from a shell is that it seems to indent already indented code. If you run the following before pasting

:set paste

and after

:set nopaste

then this problem will be solved.

 
vi.txt · Last modified: 2009/04/21 09:12 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki