Skip to content

Commit c862362

Browse files
committed
Merge branch 'master' of github.com:ntpeters/vim-better-whitespace
2 parents 7e17c6d + f2be5ca commit c862362

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,15 @@ Whitespace highlighting is enabled by default, with a highlight color of red.
7272
:ToggleStripWhitespaceOnSave
7373
```
7474
This will strip all trailing whitespace everytime you save the file for all file types.
75+
76+
* If you want this behaviour by default for all filetypes, add the following to your `~/.vimrc`:
77+
78+
```
79+
autocmd BufWritePre * StripWhitespace
80+
```
81+
82+
For exceptions of all see ```g:better_whitespace_filetypes_blacklist```.
83+
7584
* If you would prefer to only stip whitespace for certain filetypes, add
7685
the following to your `~/.vimrc`:
7786

0 commit comments

Comments
 (0)