VIM: Session-Management
This commit is contained in:
parent
cb7712421c
commit
fb1d1c0998
@ -210,10 +210,13 @@ nnoremap <silent> <space>k :<C-u>CocPrev<CR>
|
||||
" Resume latest coc list
|
||||
nnoremap <silent> <space>p :<C-u>CocListResume<CR>
|
||||
|
||||
if !exists('SessionLoad')
|
||||
" Open Tagbar
|
||||
autocmd VimEnter * nested :call tagbar#autoopen(1)
|
||||
|
||||
" Open NerdTREE
|
||||
autocmd VimEnter * NERDTree | wincmd p
|
||||
endif
|
||||
|
||||
" If another buffer tries to replace NERDTree, put it in the other window, and bring back NERDTree.
|
||||
autocmd BufEnter * if bufname('#') =~ 'NERD_tree_\d\+' && bufname('%') !~ 'NERD_tree_\d\+' && winnr('$') > 1 |
|
||||
|
@ -37,6 +37,9 @@ Plug 'roxma/vim-window-resize-easy'
|
||||
" Better comments
|
||||
Plug 'scrooloose/nerdcommenter'
|
||||
|
||||
" Session Management
|
||||
Plug 'tpope/vim-obsession'
|
||||
|
||||
" Work on brackets in pairs
|
||||
Plug 'jiangmiao/auto-pairs'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user