[VIM] Add GitGutter and Tagbar

This commit is contained in:
Gregory Trolliet 2024-03-08 21:45:50 +01:00
parent 1814e2c66b
commit ff5b95b218

22
.vimrc
View file

@ -12,6 +12,8 @@ Plugin 'VundleVim/Vundle.vim'
Plugin 'sheerun/vim-polyglot' Plugin 'sheerun/vim-polyglot'
Plugin 'scheakur/vim-scheakur' Plugin 'scheakur/vim-scheakur'
Plugin 'preservim/nerdtree' Plugin 'preservim/nerdtree'
Plugin 'preservim/tagbar'
Plugin 'airblade/vim-gitgutter'
call vundle#end() call vundle#end()
filetype plugin indent on filetype plugin indent on
@ -52,6 +54,19 @@ let NERDTreeWinSize = 31 " Set panel width to 31 columns
nmap <F2> :NERDTreeToggle<CR> nmap <F2> :NERDTreeToggle<CR>
""""""""""""""""""""""""""""""""""""""
" Tagbar
""""""""""""""""""""""""""""""""""""""
" Focus the panel when opening it
let g:tagbar_autofocus = 1
" Highlight the active tag
let g:tagbar_autoshowtag = 1
" Make panel vertical and place on the right
let g:tagbar_position = 'botright vertical'
" Mapping to open and close the panel
nmap <F8> :TagbarToggle<CR>
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Text, tab and indent related " => Text, tab and indent related
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
@ -85,3 +100,10 @@ set termwinsize=12x0 " Set terminal size
set splitbelow " Always split below set splitbelow " Always split below
set ttymouse=xterm2 set ttymouse=xterm2
set mouse=a " Enable mouse drag on window splits set mouse=a " Enable mouse drag on window splits
""""""""""""""""""""""""""""""""""""""
" GitGutter
""""""""""""""""""""""""""""""""""""""
set updatetime=100
set signcolumn=auto