Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (12 sloc) 383 Bytes

Converting between tabs and spaces

_The command for converting between tabs and spaces is:_

retab!
_More specifically, to convert tabs to spaces, run:_

set expandtab
retab!
_And to convert spaces to tabs, run:_

set noexpandtab
retab!

Strip trailing whitespace

_Strip trailing spaces throughout an entire file by running this substitution command:_

%s/\s\+$//e