diff --git a/vim/plugin/ctags.vim b/vim/plugin/ctags.vim index 8e27b09..3050af5 100644 --- a/vim/plugin/ctags.vim +++ b/vim/plugin/ctags.vim @@ -14,4 +14,9 @@ function! ReindexCtags() endif endfunction -nmap ct :call ReindexCtags() +" to stop this mapping from being added, put this in $MYVIMRC: +" let g:thoughtbot_ctags_mappings_enabled = 0 +let g:thoughtbot_ctags_mappings_enabled = get(g:, 'thoughtbot_ctags_mappings_enabled', 1) +if g:thoughtbot_ctags_mappings_enabled != 0 + nmap ct :call ReindexCtags() +endif