diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-20 20:38:09 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-20 20:38:09 +1200 |
commit | c6343abeb5a2cd4717aa777cf295c7e8eec5fad0 (patch) | |
tree | 83d208752875d2be523e2ed3477459bd2c6e203f /vim/vimrc | |
parent | Move 'encoding' .vimrc setting alphabetically (diff) | |
download | dotfiles-c6343abeb5a2cd4717aa777cf295c7e8eec5fad0.tar.gz dotfiles-c6343abeb5a2cd4717aa777cf295c7e8eec5fad0.zip |
Upgrade, reconfig strip_trailing_whitespace plugin
Diffstat (limited to 'vim/vimrc')
-rw-r--r-- | vim/vimrc | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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) |