aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2022-08-20 15:25:51 +0200
committerTeddy Wing2022-08-20 15:28:56 +0200
commit86646c99e16bdce6b156d6d3433a1251ae7482ac (patch)
treed3ce51932a9764eef1245a23c0846dea7ab78f9b
parent41b964cf126a86d826f0104aaa67077fe8d32795 (diff)
downloaddotvim-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.
-rw-r--r--vimrc8
1 files changed, 8 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index 5527518..ded1b17 100644
--- a/vimrc
+++ b/vimrc
@@ -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
" ========