diff options
author | Teddy Wing | 2022-08-20 15:25:51 +0200 |
---|---|---|
committer | Teddy Wing | 2022-08-20 15:28:56 +0200 |
commit | 86646c99e16bdce6b156d6d3433a1251ae7482ac (patch) | |
tree | d3ce51932a9764eef1245a23c0846dea7ab78f9b /vimrc | |
parent | 41b964cf126a86d826f0104aaa67077fe8d32795 (diff) | |
download | dotvim-86646c99e16bdce6b156d6d3433a1251ae7482ac.tar.bz2 |
vimrc: Add `:Co` command, alias for `:Copy`
I use this command frequently, and `:Copy` used to tab-complete first
with `:Co<Tab>`, but since I installed the Context.vim plugin, the
latter takes completion precedence. Add this alias to give `:Copy` the
highest precedence.
Diffstat (limited to 'vimrc')
-rw-r--r-- | vimrc | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -496,6 +496,10 @@ " 2022.06.23: " * Add `m,` mapping to save a Vim session file. " +" 2022.08.09: +" * Add `:Co` command, alias for `:Copy`. Adding to take precedence over +" `:Context…` commands. +" " Pathogen @@ -751,6 +755,10 @@ command! -bar -bang -range -nargs=* T <line1>,<line2>TComment<bang> <args> let g:context_enabled = 0 +" Copy +command! -range Co call copy#Copy(<line1>, <line2>) + + " Mappings " ======== |