aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-27 22:04:42 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-27 22:04:42 +1200
commitf6fdbf1afaae48b16a11744ba3f9ea1d3922ebb3 (patch)
treec357497d492b3f42dae63c0eba9b98105934764b
parentUpdate VERSION (diff)
parentBump VERSION (diff)
downloadvim-copy-linebreak-f6fdbf1afaae48b16a11744ba3f9ea1d3922ebb3.tar.gz
vim-copy-linebreak-f6fdbf1afaae48b16a11744ba3f9ea1d3922ebb3.zip
Merge branch 'release/0.5.0'v0.5.0
* release/0.5.0: Bump VERSION Update documentation date Remove <unique> attribute from mappings Remove leading colon from example mapping Remove user commands
-rw-r--r--VERSION2
-rw-r--r--doc/copy_linebreak.txt18
-rw-r--r--plugin/copy_linebreak.vim22
3 files changed, 8 insertions, 34 deletions
diff --git a/VERSION b/VERSION
index 267577d..8f0916f 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.4.1
+0.5.0
diff --git a/doc/copy_linebreak.txt b/doc/copy_linebreak.txt
index 3e98c51..09961cb 100644
--- a/doc/copy_linebreak.txt
+++ b/doc/copy_linebreak.txt
@@ -1,4 +1,4 @@
-*copy_linebreak.txt* For Vim version 6.0 Last change: 2018 June 17
+*copy_linebreak.txt* For Vim version 6.0 Last change: 2018 June 27
DESCRIPTION *copy_linebreak*
@@ -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*
@@ -27,19 +26,8 @@ Mapping targets provided are:
There are no default key mappings to any of these targets; you should define
them yourself in your |vimrc|. For example:
>
- :nmap <Leader>b <Plug>CopyLinebreakToggle
+ 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..ef7e4d2 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
@@ -47,25 +46,12 @@ function! s:CopyLinebreakToggle()
endfunction
" Provide mappings to the functions just defined
-noremap <silent> <unique>
+noremap <silent>
\ <Plug>CopyLinebreakEnable
\ :<C-U>call <SID>CopyLinebreakEnable()<CR>
-noremap <silent> <unique>
+noremap <silent>
\ <Plug>CopyLinebreakDisable
\ :<C-U>call <SID>CopyLinebreakDisable()<CR>
-noremap <silent> <unique>
+noremap <silent>
\ <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