aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-27 22:00:53 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-27 22:03:13 +1200
commit85947d1410491ca92f3bec454cb8bea037405b51 (patch)
tree703df5c825cb1d0d5da9766dcc0948692622ac2d
parentUpdate VERSION (diff)
downloadvim-copy-linebreak-85947d1410491ca92f3bec454cb8bea037405b51.tar.gz
vim-copy-linebreak-85947d1410491ca92f3bec454cb8bea037405b51.zip
Remove user commands
-rw-r--r--doc/copy_linebreak.txt14
-rw-r--r--plugin/copy_linebreak.vim16
2 files changed, 2 insertions, 28 deletions
diff --git a/doc/copy_linebreak.txt b/doc/copy_linebreak.txt
index 3e98c51..9e03aa8 100644
--- a/doc/copy_linebreak.txt
+++ b/doc/copy_linebreak.txt
@@ -10,8 +10,7 @@ emulators or screen/tmux.
REQUIREMENTS *copy_linebreak-requirements*
This plugin is only available if 'compatible' is not set. It also requires the
-|+linebreak| feature. |+user_commands| is required if you want the commands as
-well as the mappings.
+|+linebreak| feature.
MAPPINGS *copy_linebreak-mappings*
@@ -29,17 +28,6 @@ them yourself in your |vimrc|. For example:
>
:nmap <Leader>b <Plug>CopyLinebreakToggle
<
-COMMANDS *copy_linebreak-commands*
-
-If the |+user_commands| feature is available, commands provided are:
-
-`:CopyLinebreakEnable`: *:CopyLinebreakEnable*
- Enable copy-paste friendly line break options.
-`:CopyLinebreakDisable`: *:CopyLinebreakDisable*
- Revert to human-readable line break options.
-`:CopyLinebreakToggle`: *:CopyLinebreakToggle*
- Toggle between the above two states.
-
AUTHOR *copy_linebreak-author*
Written and maintained by Tom Ryder <tom@sanctum.geek.nz>.
diff --git a/plugin/copy_linebreak.vim b/plugin/copy_linebreak.vim
index 2bb19ef..97b2170 100644
--- a/plugin/copy_linebreak.vim
+++ b/plugin/copy_linebreak.vim
@@ -1,7 +1,6 @@
"
" copy_linebreak.vim: Bind user-defined key sequences to toggle a group of
-" options that make text wrapped with 'wrap' copy-paste friendly. Also creates
-" user commands if it can.
+" options that make text wrapped with 'wrap' copy-paste friendly.
"
" Author: Tom Ryder <tom@sanctum.geek.nz>
" License: Same as Vim itself
@@ -56,16 +55,3 @@ noremap <silent> <unique>
noremap <silent> <unique>
\ <Plug>CopyLinebreakToggle
\ :<C-U>call <SID>CopyLinebreakToggle()<CR>
-
-" Provide user commands if we can
-if has('user_commands')
- command -nargs=0
- \ CopyLinebreakEnable
- \ call <SID>CopyLinebreakEnable()
- command -nargs=0
- \ CopyLinebreakDisable
- \ call <SID>CopyLinebreakDisable()
- command -nargs=0
- \ CopyLinebreakToggle
- \ call <SID>CopyLinebreakToggle()
-endif