From 94b692892e646970fd8e9fb66a55513b9f23a910 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 5 Nov 2017 15:38:38 +1300 Subject: 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. --- vim/plugin/strip_trailing_whitespace.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3