VI is a text editor for UNIX/Linux consoles.
When you get accustomed to using this program, you can work with it really fast and effective. Almost all functions are available through keybord shortcuts, for example type :42 to jump to line 42 or type /Searchterm to search for "Searchterm" in the file.
But one thing always annoyed me:
If you paste several lines from the clipboard to vi, the application indents every line a little more than the previous. The result is an ugly stair-pattern.
To avoid this, simply type
:set paste
Now you can paste your text and leave the paste mode afterwards with
:set nopaste
Tags: clipboard · copy · linux · paste · tip · vi
