We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a11d62e commit bdf73b0Copy full SHA for bdf73b0
README.md
@@ -1,9 +1,9 @@
1
# vim-trimmer
2
3
A super-simple vim plugin that:
4
-* Adds an auto-command that trims trailing whitespace on buffer write while
+* Adds an autocmd that trims trailing whitespace on buffer write while
5
preserving cursor position.
6
-* Optionally disables the autocommand for specified blacklisted filetypes (see
+* Optionally disables the autocmd for specified blacklisted filetypes (see
7
configuration).
8
9
## Installation
plugin/vim-trimmer.vim
@@ -5,7 +5,7 @@ endif
augroup vimTrimmer
autocmd!
autocmd BufWritePre * call s:TrimTrailingWhitespace(g:trimmer_blacklist)
-end
+augroup END
10
function! s:TrimTrailingWhitespace(blacklist)
11
if index(a:blacklist, &ft) < 0
0 commit comments