From 9be8677d0a3f29e054541b45670c1f7f090c5f6d Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 26 Jun 2018 10:34:26 +1200 Subject: Remap normal J only if loading plugins This will also deftly dodge vim-tiny. --- vim/vimrc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'vim') diff --git a/vim/vimrc b/vim/vimrc index 2e90ecbe..4873b9cd 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -200,9 +200,10 @@ nnoremap ]t :tabnext nmap [ PutBlankLinesAbove nmap ] PutBlankLinesBelow -" Remap normal J to stay in place while joining lines; fall back to default -nnoremap FixedJoin J -nmap J FixedJoin +" Remap normal J to stay in place while joining lines +if &loadplugins + nmap J FixedJoin +endif " Remap normal Y to yank to end of line (consistent with C, D) nnoremap Y y$ -- cgit v1.2.3