aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-23 16:12:14 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-23 16:12:14 +1200
commit5572c97a0b71dee053b814eda50b0d88eb7a230e (patch)
tree5a8fcdccf68ce7e07a6c1fd7de66698c7ce7cbaf
parentSilently cap join end to last line of buffer (diff)
downloadvim-fixed-join-5572c97a0b71dee053b814eda50b0d88eb7a230e.tar.gz
vim-fixed-join-5572c97a0b71dee053b814eda50b0d88eb7a230e.zip
Remove useless user command
:join already keeps the cursor still, making this command useless.
-rw-r--r--doc/fixed_join.txt6
-rw-r--r--plugin/fixed_join.vim7
2 files changed, 0 insertions, 13 deletions
diff --git a/doc/fixed_join.txt b/doc/fixed_join.txt
index c3c1962..57c623c 100644
--- a/doc/fixed_join.txt
+++ b/doc/fixed_join.txt
@@ -19,12 +19,6 @@ If the user's configuration does not specify a mapping to this target by the
time this plugin is loaded, it will attempt to map 'J' in normal mode to
simply replace the default functionality.
-COMMANDS *fixed_join-commands*
- *:FixedJoin*
-
-The plugin also provides a `:FixedJoin` command if Vim has the
-|+user_commands| feature, but this is not required.
-
ALTERNATIVE *fixed-join-alternative*
If you don't mind clobbering a mark, this whole plugin can be replaced with
diff --git a/plugin/fixed_join.vim b/plugin/fixed_join.vim
index f64b650..d039d53 100644
--- a/plugin/fixed_join.vim
+++ b/plugin/fixed_join.vim
@@ -52,10 +52,3 @@ noremap <silent> <unique>
nmap <unique>
\ J
\ <Plug>FixedJoin
-
-" Create a command as well in case it's useful
-if has('user_commands')
- command -nargs=0
- \ FixedJoin
- \ call <SID>FixedJoin()
-endif