From aa3d0863c65aff11b56488e791dd28c1cf7dbd09 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 13 Jun 2023 09:22:15 +0800 Subject: vim: Configure NERDTree plugin --- _vim/vimrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/_vim/vimrc b/_vim/vimrc index a03d3a6..3e526be 100644 --- a/_vim/vimrc +++ b/_vim/vimrc @@ -321,6 +321,13 @@ nnoremap gb :Gblame autocmd BufReadPost fugitive://* setlocal bufhidden=delete +" Mappings for NERDTree +nnoremap n :NERDTreeFocus +nnoremap :NERDTreeToggle +" 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 -- cgit v1.2.2