add option to hide bookmarks label
This commit is contained in:
parent
e4efdb3bd4
commit
9e415dcc6d
@ -52,6 +52,7 @@ call s:initVariable("g:NERDTreeAutoCenterThreshold", 3)
|
|||||||
call s:initVariable("g:NERDTreeCaseSensitiveSort", 0)
|
call s:initVariable("g:NERDTreeCaseSensitiveSort", 0)
|
||||||
call s:initVariable("g:NERDTreeChDirMode", 0)
|
call s:initVariable("g:NERDTreeChDirMode", 0)
|
||||||
call s:initVariable("g:NERDTreeShowPressForHelp", 1)
|
call s:initVariable("g:NERDTreeShowPressForHelp", 1)
|
||||||
|
call s:initVariable("g:NERDTreeShowBookmarksLabel", 1)
|
||||||
if !exists("g:NERDTreeIgnore")
|
if !exists("g:NERDTreeIgnore")
|
||||||
let g:NERDTreeIgnore = ['\~$']
|
let g:NERDTreeIgnore = ['\~$']
|
||||||
endif
|
endif
|
||||||
@ -3241,8 +3242,10 @@ endfunction
|
|||||||
"FUNCTION: s:renderBookmarks {{{2
|
"FUNCTION: s:renderBookmarks {{{2
|
||||||
function! s:renderBookmarks()
|
function! s:renderBookmarks()
|
||||||
|
|
||||||
call setline(line(".")+1, ">----------Bookmarks----------")
|
if g:NERDTreeShowBookmarksLabel == 1
|
||||||
call cursor(line(".")+1, col("."))
|
call setline(line(".")+1, ">----------Bookmarks----------")
|
||||||
|
call cursor(line(".")+1, col("."))
|
||||||
|
endif
|
||||||
|
|
||||||
for i in s:Bookmark.Bookmarks()
|
for i in s:Bookmark.Bookmarks()
|
||||||
call setline(line(".")+1, i.str())
|
call setline(line(".")+1, i.str())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user