aboutsummaryrefslogtreecommitdiff
path: root/plugin/copy_linebreak.vim
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/copy_linebreak.vim')
-rw-r--r--plugin/copy_linebreak.vim22
1 files changed, 4 insertions, 18 deletions
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