Inspired by vimcast article
This makes it more clear which split a file will be opened in.
Use rbgrouleff/bclose.vim
to close the buffer and not break splits.
map <silent> bd :Bclose<CR>
" NERD_tree
" map <silent> <leader>d :execute 'NERDTreeToggle ' . getcwd()<CR>
map <silent> <leader>d :execute 'e '. getcwd()<CR>
let NERDTreeHijackNetrw=1
Now you can <leader>d
to open nerdtree in the current buffer and use bd
to close the buffer or simply open a file.