[VIM] Add GitGutter and Tagbar
This commit is contained in:
parent
1814e2c66b
commit
ff5b95b218
1 changed files with 22 additions and 0 deletions
22
.vimrc
22
.vimrc
|
@ -12,6 +12,8 @@ Plugin 'VundleVim/Vundle.vim'
|
|||
Plugin 'sheerun/vim-polyglot'
|
||||
Plugin 'scheakur/vim-scheakur'
|
||||
Plugin 'preservim/nerdtree'
|
||||
Plugin 'preservim/tagbar'
|
||||
Plugin 'airblade/vim-gitgutter'
|
||||
|
||||
call vundle#end()
|
||||
filetype plugin indent on
|
||||
|
@ -52,6 +54,19 @@ let NERDTreeWinSize = 31 " Set panel width to 31 columns
|
|||
|
||||
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
|
||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
|
@ -85,3 +100,10 @@ set termwinsize=12x0 " Set terminal size
|
|||
set splitbelow " Always split below
|
||||
set ttymouse=xterm2
|
||||
set mouse=a " Enable mouse drag on window splits
|
||||
|
||||
""""""""""""""""""""""""""""""""""""""
|
||||
" GitGutter
|
||||
""""""""""""""""""""""""""""""""""""""
|
||||
|
||||
set updatetime=100
|
||||
set signcolumn=auto
|
||||
|
|
Loading…
Reference in a new issue