From 6da0eb60ce8435917e126006b9506cbcd31b6ff0 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 30 Jul 2024 01:06:32 -0300 Subject: Feat: additional folding markers --- vim.dot.link/plugin/nerdtree_customizations.vim | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'vim.dot.link/plugin/nerdtree_customizations.vim') 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 +" 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() command -nargs=1 -complete=customlist,nerdtree#completeBookmarks B :call TabNewBookmark() command -nargs=0 OpenNERDTree :call OpenNERDTree() +" }}} -- cgit v1.2.3