" nedtree_customizations.vim - NERDTree customizations {{{ " " Initially adapted from " http://stackoverflow.com/questions/1447334/how-do-you-add-nerdtree-to-your-vimrc " " Author: Silvio Rhatto " Use the minimal UI {{{ let NERDTreeMinimalUI=1 " }}} " NERDTree autogroup {{{ augroup nerdtree autocmd! " Open NERDTree when vim starts "autocmd VimEnter * NERDTree "autocmd VimEnter * wincmd p autocmd FileType nerdtree setlocal relativenumber autocmd FileType taglist setlocal relativenumber augroup END " }}} " TabNew {{{ function TabNew(address) execute ":tabnew" execute ":NERDTree " a:address endfunction " }}} " TabNewBookmark {{{ function TabNewBookmark(bookmark) execute ":tabnew" execute ":NERDTreeFromBookmark " a:bookmark endfunction " }}} " OpenNERDTree {{{ function OpenNERDTree() execute ":NERDTree" endfunction " }}} " Shortcuts {{{ cnoreabbrev t NERDTree cnoreabbrev b NERDTreeFromBookmark cnoreabbrev s OpenSession cnoreabbrev sload OpenSession cnoreabbrev ssave SaveSession command -nargs=1 -complete=dir T :call TabNew() command -nargs=1 -complete=customlist,nerdtree#completeBookmarks B :call TabNewBookmark() command -nargs=0 OpenNERDTree :call OpenNERDTree() " }}}