diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-05 15:38:38 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-05 15:38:38 +1300 |
commit | 94b692892e646970fd8e9fb66a55513b9f23a910 (patch) | |
tree | 52a3694cd664ca62af24054ddb7b0ffc2c3da8d0 /vim/plugin | |
parent | Merge branch 'release/v0.9.0' into develop (diff) | |
download | dotfiles-94b692892e646970fd8e9fb66a55513b9f23a910.tar.gz dotfiles-94b692892e646970fd8e9fb66a55513b9f23a910.zip |
Don't report lines deleted after stripping space
Prepend the line :delete command with a :silent to stop it reporting the
number of lines it removed.
Diffstat (limited to 'vim/plugin')
-rw-r--r-- | vim/plugin/strip_trailing_whitespace.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/plugin/strip_trailing_whitespace.vim b/vim/plugin/strip_trailing_whitespace.vim index 9a9d3d95..ceeaec7c 100644 --- a/vim/plugin/strip_trailing_whitespace.vim +++ b/vim/plugin/strip_trailing_whitespace.vim @@ -54,7 +54,7 @@ function! s:StripTrailingWhitespace() let l:cc = col('.') " Delete the lines, which will move the cursor - execute l:lw + 1 . ',$ delete' + silent execute l:lw + 1 . ',$ delete' " Return the cursor to the saved position call cursor(l:lc, l:cc) |