tagbar, nerdtree autoclose set
This commit is contained in:
parent
2af28d877a
commit
31521f1be5
3
vimrc
3
vimrc
|
@ -242,6 +242,7 @@ set expandtab " tab inserts 'softtabstop' number of spaces
|
|||
set softtabstop=2 "
|
||||
set shiftwidth=2 " affects what happens with >>,<<,== and automatic indentation
|
||||
set mouse=a
|
||||
|
||||
filetype plugin indent on " file type based indentation
|
||||
|
||||
" rewrapping set to 80
|
||||
|
@ -373,9 +374,11 @@ nnoremap <F3> :NERDTreeFocus<CR>
|
|||
nnoremap <leader>nt :NERDTreeFocus<CR>
|
||||
" allow closing if only window open is a NERDTree
|
||||
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
|
||||
let NERDTreeQuitOnOpen = 1
|
||||
|
||||
" TagBar
|
||||
nnoremap <leader>tb :TagbarOpen fj<CR>
|
||||
let g:tagbar_autoclose = 1
|
||||
|
||||
|
||||
" tagbar css/scss thingy
|
||||
|
|
Loading…
Reference in New Issue