nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit 9e415dcc6d759ef01993041cdf142db5add9deb7
parent e4efdb3bd4fb9281720c459123ff4f7f3e7a434a
Author: Cam Thompson <cam@camthompson.com>
Date:   Thu, 13 Jan 2011 18:00:41 -0500

add option to hide bookmarks label

Diffstat:
Mplugin/NERD_tree.vim | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim
@@ -52,6 +52,7 @@ call s:initVariable("g:NERDTreeAutoCenterThreshold", 3)
 call s:initVariable("g:NERDTreeCaseSensitiveSort", 0)
 call s:initVariable("g:NERDTreeChDirMode", 0)
 call s:initVariable("g:NERDTreeShowPressForHelp", 1)
+call s:initVariable("g:NERDTreeShowBookmarksLabel", 1)
 if !exists("g:NERDTreeIgnore")
     let g:NERDTreeIgnore = ['\~$']
 endif
@@ -3241,8 +3242,10 @@ endfunction
 "FUNCTION: s:renderBookmarks {{{2
 function! s:renderBookmarks()
 
-    call setline(line(".")+1, ">----------Bookmarks----------")
-    call cursor(line(".")+1, col("."))
+    if g:NERDTreeShowBookmarksLabel == 1
+        call setline(line(".")+1, ">----------Bookmarks----------")
+        call cursor(line(".")+1, col("."))
+    endif
 
     for i in s:Bookmark.Bookmarks()
         call setline(line(".")+1, i.str())