aboutsummaryrefslogtreecommitdiffstats
path: root/_vim/vimrc
diff options
context:
space:
mode:
Diffstat (limited to '_vim/vimrc')
-rw-r--r--_vim/vimrc7
1 files changed, 7 insertions, 0 deletions
diff --git a/_vim/vimrc b/_vim/vimrc
index a03d3a6..3e526be 100644
--- a/_vim/vimrc
+++ b/_vim/vimrc
@@ -321,6 +321,13 @@ nnoremap <leader>gb :Gblame<cr>
autocmd BufReadPost fugitive://* setlocal bufhidden=delete
+" Mappings for NERDTree
+nnoremap <leader>n :NERDTreeFocus<cr>
+nnoremap <C-t> :NERDTreeToggle<cr>
+" Start NERDTree when Vim is started without file arguments.
+autocmd StdinReadPre * let s:std_in=1
+autocmd VimEnter * if argc() == 0 && !exists('s:std_in') | NERDTree | endif
+
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Helper functions