diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-08-23 09:04:35 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-08-23 09:04:35 +1200 |
commit | 389158a68b4b6453fd7ab44945a41c4ae55c55fd (patch) | |
tree | fe091d662e21338d57ae5b6e68edf595ce28d780 /vim/vimrc | |
parent | Merge branch 'release/v1.59.0' into develop (diff) | |
download | dotfiles-389158a68b4b6453fd7ab44945a41c4ae55c55fd.tar.gz dotfiles-389158a68b4b6453fd7ab44945a41c4ae55c55fd.zip |
Check for existence of :xmap for mapping
Diffstat (limited to 'vim/vimrc')
-rw-r--r-- | vim/vimrc | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -299,7 +299,9 @@ nnoremap <Bslash>p :<C-U>set paste! paste?<CR> nnoremap <Bslash>q gqap " \r acts as a replacement operator nmap <Bslash>r <Plug>(ReplaceOperator) -xmap <Bslash>r <Plug>(ReplaceOperator) +if exists(':xmap') + xmap <Bslash>r <Plug>(ReplaceOperator) +endif " \R reloads ~/.vimrc nnoremap <Bslash>R :<C-U>source $MYVIMRC<CR> " \s toggles spell checking |