refactor: finish moving ssh-* scripts to own installers
[webi-installers/.git] / vim-whitespace / whitespace.vim
1 " The default tab width is 8 spaces, which is redonkulous.
2 " We'll set it to 4 instead, which is reasonable.
3 " (feel free to change to 2, but 3 is right out).
4 "
5 " Also, I'm not actually sure what the individual options do,
6 " but it's something like 'always use spaces' and
7 " 'use the same width when typing, tabbing, deleting, moving, etc'
8 set tabstop=4
9 set shiftwidth=4
10 set smarttab
11 set expandtab
12 set softtabstop=4
13
14 " remove trailing whitespace on save
15 autocmd BufWritePre * :%s/\s\+$//e