aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-06-17 10:07:27 +1200
committerTom Ryder <tom@sanctum.geek.nz>2015-06-17 10:07:27 +1200
commit8e6964a1e84a57646c9e6d06ff03ce40a6b810b2 (patch)
treee7ade30ec199143a7de41f0b655a94df9241c2c8 /vim/vimrc
parentMay as well keep a huge amount of history (diff)
downloaddotfiles-8e6964a1e84a57646c9e6d06ff03ce40a6b810b2.tar.gz
dotfiles-8e6964a1e84a57646c9e6d06ff03ce40a6b810b2.zip
Nitpick: fix indenting in vimrc
Diffstat (limited to 'vim/vimrc')
-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