Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (12 sloc) 364 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