diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-12 20:57:13 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-12 20:57:13 +1300 |
commit | 937458202c8311ecbed7a51a4cec1d1941a6bfd0 (patch) | |
tree | 00b3900dc6a7e351218dfe8f55b1fd575bf08889 /vim/config | |
parent | Merge branch 'release/v0.14.0' into develop (diff) | |
download | dotfiles-937458202c8311ecbed7a51a4cec1d1941a6bfd0.tar.gz dotfiles-937458202c8311ecbed7a51a4cec1d1941a6bfd0.zip |
Bind norm J on fixed_join.vim load if appropriate
If there are no mappings to the <Plug>FixedJoin target that the
fixed_join.vim plugin provides at the time it is loaded, and the
line-joining function of normal-mode J is not already mapped, the plugin
will try to map it itself, for a more plug-and-play.
Diffstat (limited to 'vim/config')
-rw-r--r-- | vim/config/whitespace.vim | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/vim/config/whitespace.vim b/vim/config/whitespace.vim index 12d41a4e..981def81 100644 --- a/vim/config/whitespace.vim +++ b/vim/config/whitespace.vim @@ -24,12 +24,5 @@ set shiftround " despite the noble Steve Losh's exhortations set nojoinspaces -" Rebind normal J to run plugin-defined join that doesn't jump around, but -" only if we have the eval feature, because otherwise this mapping won't exist -" and we should keep the default behaviour -if has('eval') - nmap J <Plug>FixedJoin -endif - " \x strips trailing whitespace via a custom plugin nmap <Leader>x <Plug>StripTrailingWhitespace |