aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-12 12:59:37 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-12 12:59:37 +1200
commitd23b74d5a4ea06ea416d0cf2089fc334cb63bfd9 (patch)
treec9f2433561878a9c7b6b830babb5201168e63d69
parentMerge branch 'release/0.5.0' into develop (diff)
downloadvim-copy-linebreak-d23b74d5a4ea06ea416d0cf2089fc334cb63bfd9.tar.gz
vim-copy-linebreak-d23b74d5a4ea06ea416d0cf2089fc334cb63bfd9.zip
Parenthesize plugin maps
-rw-r--r--doc/copy_linebreak.txt8
-rw-r--r--plugin/copy_linebreak.vim6
2 files changed, 7 insertions, 7 deletions
diff --git a/doc/copy_linebreak.txt b/doc/copy_linebreak.txt
index 09961cb..6b87bd8 100644
--- a/doc/copy_linebreak.txt
+++ b/doc/copy_linebreak.txt
@@ -16,17 +16,17 @@ MAPPINGS *copy_linebreak-mappings*
Mapping targets provided are:
-|<Plug>CopyLinebreakEnable|: *<Plug>CopyLinebreakEnable*
+|<Plug>(CopyLinebreakEnable)|: *<Plug>(CopyLinebreakEnable)*
Enable copy-paste friendly line break options.
-|<Plug>CopyLinebreakDisable|: *<Plug>CopyLinebreakDisable*
+|<Plug>(CopyLinebreakDisable)|: *<Plug>(CopyLinebreakDisable)*
Revert to human-readable line break options.
-|<Plug>CopyLinebreakToggle|: *<Plug>CopyLinebreakToggle*
+|<Plug>(CopyLinebreakToggle)|: *<Plug>(CopyLinebreakToggle)*
Toggle between the above two states.
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)
<
AUTHOR *copy_linebreak-author*
diff --git a/plugin/copy_linebreak.vim b/plugin/copy_linebreak.vim
index ef7e4d2..e437e03 100644
--- a/plugin/copy_linebreak.vim
+++ b/plugin/copy_linebreak.vim
@@ -47,11 +47,11 @@ endfunction
" Provide mappings to the functions just defined
noremap <silent>
- \ <Plug>CopyLinebreakEnable
+ \ <Plug>(CopyLinebreakEnable)
\ :<C-U>call <SID>CopyLinebreakEnable()<CR>
noremap <silent>
- \ <Plug>CopyLinebreakDisable
+ \ <Plug>(CopyLinebreakDisable)
\ :<C-U>call <SID>CopyLinebreakDisable()<CR>
noremap <silent>
- \ <Plug>CopyLinebreakToggle
+ \ <Plug>(CopyLinebreakToggle)
\ :<C-U>call <SID>CopyLinebreakToggle()<CR>