diff options
Diffstat (limited to 'vim/vimrc')
-rw-r--r-- | vim/vimrc | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |