diff options
Diffstat (limited to 'vim.dot.link/plugin/nerdtree_customizations.vim')
-rw-r--r-- | vim.dot.link/plugin/nerdtree_customizations.vim | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/vim.dot.link/plugin/nerdtree_customizations.vim b/vim.dot.link/plugin/nerdtree_customizations.vim index f2e42ec..95b50f3 100644 --- a/vim.dot.link/plugin/nerdtree_customizations.vim +++ b/vim.dot.link/plugin/nerdtree_customizations.vim @@ -1,12 +1,15 @@ -" nedtree_customizations.vim - NERDTree customizations +" nedtree_customizations.vim - NERDTree customizations {{{ " " Initially adapted from " http://stackoverflow.com/questions/1447334/how-do-you-add-nerdtree-to-your-vimrc " " Author: Silvio Rhatto <rhatto@riseup.net> +" Use the minimal UI {{{ let NERDTreeMinimalUI=1 +" }}} +" NERDTree autogroup {{{ augroup nerdtree autocmd! @@ -17,22 +20,29 @@ augroup nerdtree autocmd FileType nerdtree set relativenumber autocmd FileType taglist set 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 +" Shortcuts {{{ cnoreabbrev t NERDTree cnoreabbrev b NERDTreeFromBookmark cnoreabbrev s OpenSession @@ -41,3 +51,4 @@ cnoreabbrev ssave SaveSession command -nargs=1 -complete=dir T :call TabNew(<f-args>) command -nargs=1 -complete=customlist,nerdtree#completeBookmarks B :call TabNewBookmark(<f-args>) command -nargs=0 OpenNERDTree :call OpenNERDTree() +" }}} |