3 homepage: https://webinstall.dev/vim-whitespace
5 vim whitespace sets tab, whitespace, trailing whitespace rules to reasonable values
8 To update (replacing the current version) run `webi vim-whitespace`.
12 The idea that tabs should be 8 spaces wide is redonkulous.
14 This vim-whitespace plugin sets tabs to spaces (4 wide), trim trailing
15 whitespace, and makes whitespace handling consistent.
17 ### How to configure manually
19 Create the file `~/.vim/plugins/whitespace.vim`. Add the same contents as
20 <https://github.com/webinstall/webi-installers/blob/master/vim-whitespace/whitespace.vim>.
22 That will look something like this:
25 " handle tabs as 4 spaces, in every direction, consintently
32 " remove trailing whitespace on save
33 autocmd BufWritePre * :%s/\s\+$//e
36 You'll then need to update `~/.vimrc` to source that plugin:
39 " Tabs & Whitespace: reasonable defaults from webinstall.dev/vim-whitespace
40 source ~/.vim/plugins/whitespace.vim