aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-26 10:34:26 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-26 10:34:26 +1200
commit9be8677d0a3f29e054541b45670c1f7f090c5f6d (patch)
tree7cb6c703447936738b093f59a0cf7ea4fa974919 /vim
parentMerge branch 'release/v1.5.0' into develop (diff)
downloaddotfiles-9be8677d0a3f29e054541b45670c1f7f090c5f6d.tar.gz
dotfiles-9be8677d0a3f29e054541b45670c1f7f090c5f6d.zip
Remap normal J only if loading plugins
This will also deftly dodge vim-tiny.
Diffstat (limited to 'vim')
-rw-r--r--vim/vimrc7
1 files changed, 4 insertions, 3 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 2e90ecbe..4873b9cd 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -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$