aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vim/vimrc8
1 files changed, 4 insertions, 4 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 3f40f14c..6db0c965 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -174,10 +174,10 @@ endif
" Strip trailing whitespace with \x
if has('eval')
function! StripTrailingWhitespace()
- let l:search = @/
- %substitute/\s\+$//e
- let @/ = l:search
- nohlsearch
+ let l:search = @/
+ %substitute/\s\+$//e
+ let @/ = l:search
+ nohlsearch
endfunction
nnoremap <silent> <leader>x :<C-U>call StripTrailingWhitespace()<CR>
endif