aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-20 20:38:09 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-20 20:38:09 +1200
commitc6343abeb5a2cd4717aa777cf295c7e8eec5fad0 (patch)
tree83d208752875d2be523e2ed3477459bd2c6e203f
parent46a72313f81a3ad6bd7c4ea98d9c7d790eff8932 (diff)
downloaddotfiles-c6343abeb5a2cd4717aa777cf295c7e8eec5fad0.tar.gz
dotfiles-c6343abeb5a2cd4717aa777cf295c7e8eec5fad0.zip
Upgrade, reconfig strip_trailing_whitespace plugin
m---------vim/bundle/strip_trailing_whitespace0
-rw-r--r--vim/vimrc5
2 files changed, 4 insertions, 1 deletions
diff --git a/vim/bundle/strip_trailing_whitespace b/vim/bundle/strip_trailing_whitespace
-Subproject e689a60912a1832f167bdc88cf08cbba2a9ae7e
+Subproject 3ecc30fe80b32003414d2647efb17e89c27c6aa
diff --git a/vim/vimrc b/vim/vimrc
index 297fd078..093023c6 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -314,7 +314,10 @@ nnoremap <Bslash>V :<C-U>let b: t: w:<CR>
" \w toggles wrapping
nnoremap <Bslash>w :<C-U>setlocal wrap! wrap?<CR>
" \x strips trailing whitespace via a custom plugin
-nmap <Bslash>x <Plug>(StripTrailingWhitespace)
+nmap <Bslash>x :<C-U>StripTrailingWhitespace<CR>
+if v:version >= 700
+ xmap <Bslash>x :StripTrailingWhitespace<CR>
+endif
" \y shows all registers
nnoremap <Bslash>y :<C-U>registers<CR>
" \z sets NZ English spelling (compare \u)