diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2024-07-30 01:06:32 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2024-07-30 01:06:32 -0300 |
commit | 6da0eb60ce8435917e126006b9506cbcd31b6ff0 (patch) | |
tree | f7189dbd5ed6076b7138974d2b5742f191ce7152 /vim.dot.link/plugin/nerdtree_customizations.vim | |
parent | c0c227d51a3caf5502eac6bd65ab01117f12d29a (diff) | |
download | vim-6da0eb60ce8435917e126006b9506cbcd31b6ff0.tar.gz vim-6da0eb60ce8435917e126006b9506cbcd31b6ff0.tar.bz2 |
Feat: additional folding markers
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() +" }}} |