Made sure that the powerline is always displayed, even when NERDTree is closed. Also Fixed behaviour with :bd where NERDTree would flip out and close all of vim. Ctrl+C still works though

This commit is contained in:
Jono Targett 2022-02-04 09:59:09 +10:30
parent eb6dda9d99
commit d4a8ceaaeb

5
.vimrc
View File

@ -4,8 +4,13 @@ syntax on
so ~/.vim/plugins.vim
set splitbelow
" Make sure that powerline is always displayed
set laststatus=2
" Always start with NERDTree open
"autocmd vimenter * NERDTree
" Stop NERDTree causing a panic when you use :bd and exiting vim
nnoremap \d :bp<cr>:bd #<cr>
" Show/hide NERDTree with Ctrl+T
map <C-t> :NERDTreeToggle<CR>