From 4512b88254d4491bee873827d2f6001993acb7ad Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 13 Jul 2019 07:04:35 +0200 Subject: [PATCH] [ADD][VIM] gutentags_plus configuration This plug-in needs the 'global' package to work properly. --- vim/.vimrc | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/vim/.vimrc b/vim/.vimrc index e686a3e..7ab44aa 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -82,6 +82,8 @@ Plug 'tpope/vim-git' Plug 'tpope/vim-fugitive' " Tag management Plug 'ludovicchabant/vim-gutentags' +" Handling multiple cscopes for gutentags +Plug 'skywind3000/gutentags_plus' " Vim facilities enhancement """""""""""""""""""""""""""" @@ -134,23 +136,6 @@ set backspace=eol,indent,start set visualbell set t_vb= -""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -" Mappings -""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -" Yank until the end of line with Y, to be more consistent with D and C -nnoremap Y y$ - -" Map leader to space (needs the noremap trick) -nnoremap -let mapleader=" " - -" Mappings for working with this file. -map ev :edit $MYVIMRC -map es :source $MYVIMRC - -" Run make silently, then skip the 'Press ENTER to continue' -noremap m :silent! :make! \| :redraw! - """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Search parameters """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" @@ -169,10 +154,19 @@ let g:strip_whitespace_on_save=1 " Enable gutentags let g:gutentags_enabled=1 +" enable gtags module +let g:gutentags_modules = ['ctags', 'gtags_cscope'] +" config project root markers. +let g:gutentags_project_root = ['.root'] +" generate datebases in my cache directory, prevent gtags files polluting my project +let g:gutentags_cache_dir = expand('~/.cache/tags') +" forbid gutentags adding gtags databases +let g:gutentags_auto_add_gtags_cscope = 0 " Use a slightly darker background color to differentiate with the status line let g:jellybeans_background_color_256='232' " colorscheme jellybeans +" colorscheme jellybeans " Set dark mode by default set background=dark