diff options
-rw-r--r-- | autoload/strip_trailing_whitespace.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/autoload/strip_trailing_whitespace.vim b/autoload/strip_trailing_whitespace.vim index a4d4f91..14a2e2d 100644 --- a/autoload/strip_trailing_whitespace.vim +++ b/autoload/strip_trailing_whitespace.vim @@ -1,6 +1,6 @@ " Wrapper function to strip both horizontal and vertical trailing whitespace, " return the cursor to its previous position, and report changes -function strip_trailing_whitespace#Strip(start, end) abort +function! strip_trailing_whitespace#Strip(start, end) abort " Save cursor position let line = line('.') @@ -36,7 +36,7 @@ function strip_trailing_whitespace#Strip(start, end) abort endfunction " Strip horizontal trailing whitespace, return the number of lines changed -function s:StripHorizontal(start, end) abort +function! s:StripHorizontal(start, end) abort " Start a count of lines trimmed let stripped = 0 @@ -63,7 +63,7 @@ function s:StripHorizontal(start, end) abort endfunction " Strip trailing vertical whitespace, return the number of lines changed -function s:StripVertical() abort +function! s:StripVertical() abort " Store the number of the last line we found with non-whitespace characters " on it; start at 1 because even if it's empty it's never trailing |