diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-26 10:34:26 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-26 10:34:26 +1200 |
commit | 9be8677d0a3f29e054541b45670c1f7f090c5f6d (patch) | |
tree | 7cb6c703447936738b093f59a0cf7ea4fa974919 | |
parent | Merge branch 'release/v1.5.0' into develop (diff) | |
download | dotfiles-9be8677d0a3f29e054541b45670c1f7f090c5f6d.tar.gz dotfiles-9be8677d0a3f29e054541b45670c1f7f090c5f6d.zip |
Remap normal J only if loading plugins
This will also deftly dodge vim-tiny.
-rw-r--r-- | vim/vimrc | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -200,9 +200,10 @@ nnoremap ]t :<C-U>tabnext<CR> nmap [<Space> <Plug>PutBlankLinesAbove nmap ]<Space> <Plug>PutBlankLinesBelow -" Remap normal J to stay in place while joining lines; fall back to default -nnoremap <Plug>FixedJoin J -nmap J <Plug>FixedJoin +" Remap normal J to stay in place while joining lines +if &loadplugins + nmap J <Plug>FixedJoin +endif " Remap normal Y to yank to end of line (consistent with C, D) nnoremap Y y$ |