From e3ec82e56b08d6d0fc9098eb93dcaf121f536904 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 1 Jun 2022 20:40:30 +0200 Subject: vimrc: Disable context.vim by default Enable it by default in AODocs paths. --- projects/aodocs.vim | 6 ++++++ vimrc | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/projects/aodocs.vim b/projects/aodocs.vim index 971d3c8..0d9c2e3 100644 --- a/projects/aodocs.vim +++ b/projects/aodocs.vim @@ -45,6 +45,12 @@ augroup AODocs autocmd BufRead,BufEnter $VIM_PROJECT_PATH_AODOCS_UFO_EXTENSION/*.js \ setlocal path+=$VIM_PROJECT_PATH_AODOCS_UFO_EXTENSION_MODULE + " Turn on context.vim + autocmd BufRead,BufEnter + \ $VIM_PROJECT_PATH_AODOCS_GO/* + \,$VIM_PROJECT_PATH_AODOCS/* + \ ContextEnable + autocmd BufRead,BufEnter *.todo \ nnoremap yy :call TodoCopyLast() augroup END diff --git a/vimrc b/vimrc index 66c2b2a..914ad40 100644 --- a/vimrc +++ b/vimrc @@ -491,6 +491,7 @@ " " 2022.06.01: " * Add `yp` mapping to paste from the "0 register. +" * Disable context.vim by default. " @@ -742,6 +743,11 @@ nnoremap gS :call argwrap#toggle() silent! call repeat#set('gS') command! -bar -bang -range -nargs=* T ,TComment +" Context +" Disable Context by default. +let g:context_enabled = 0 + + " Mappings " ======== -- cgit v1.2.3