Vim tips

From EggeWiki
Revision as of 22:30, 8 July 2009 by Brianegge (talk | contribs)

View tab characters in a file

One easy way is ":set list". It also shows other control characters, including the line ending. Turn it off with ":set nolist".

Paste text without reformat

When I paste code into vim, often it's already formatted. To avoid double formatting, I type ":set paste" before pasting my text.