From 86646c99e16bdce6b156d6d3433a1251ae7482ac Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 20 Aug 2022 15:25:51 +0200 Subject: vimrc: Add `:Co` command, alias for `:Copy` I use this command frequently, and `:Copy` used to tab-complete first with `:Co`, but since I installed the Context.vim plugin, the latter takes completion precedence. Add this alias to give `:Copy` the highest precedence. --- vimrc | 8 ++++++++ 1 file changed, 8 insertions(+) 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 ,TComment let g:context_enabled = 0 +" Copy +command! -range Co call copy#Copy(, ) + + " Mappings " ======== -- cgit v1.2.3