Vim tips: Difference between revisions
m (Created page with '== 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".') |
mNo edit summary |
||
Line 2: | Line 2: | ||
One easy way is ":set list". It also shows other control characters, including the line ending. Turn it off with ":set nolist". | 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. |
Revision as of 02:30, 9 July 2009
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.