From 6291bddf4ea5d906760cbe83a03aac1a68b8ca3a Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 25 Jun 2018 13:07:11 +1200 Subject: Remove default remapping This should be in .vimrc regardless. --- doc/fixed_join.txt | 9 +++++---- plugin/fixed_join.vim | 7 +------ 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/doc/fixed_join.txt b/doc/fixed_join.txt index 811972b..4ef151a 100644 --- a/doc/fixed_join.txt +++ b/doc/fixed_join.txt @@ -15,10 +15,11 @@ MAPPINGS *fixed_join-mappings* A single mapping target |FixedJoin| is provided for a user to `:join` lines in normal mode without the cursor jumping around. -If the user's configuration does not specify a mapping to this target by the -time this plugin is loaded, it will attempt to remap normal |J| to replace its -default function. - +To remap normal |J| to use this instead of its default function, you could put +this in your |vimrc|: +> + nmap J FixedJoin +< AUTHOR *fixed_join-author* Written and maintained by Tom Ryder . diff --git a/plugin/fixed_join.vim b/plugin/fixed_join.vim index d546aee..1610011 100644 --- a/plugin/fixed_join.vim +++ b/plugin/fixed_join.vim @@ -33,12 +33,7 @@ function! s:FixedJoin() endfunction -" Create mapping proxy to the function just defined +" Create modeless mapping target for the function just defined noremap \ FixedJoin \ :call FixedJoin() - -" If there's no mapping to it already, bind normal J to it -if !hasmapto('FixedJoin') - nmap J FixedJoin -endif -- cgit v1.2.3