Skip to content

Commit 999ba49

Browse files
committed
merge hide bookmarks and press ? options
1 parent e88f436 commit 999ba49

File tree

2 files changed

+12
-27
lines changed

2 files changed

+12
-27
lines changed

doc/NERD_tree.txt

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -642,11 +642,8 @@ NERD tree. These options should be set in your vimrc.
642642
|'NERDTreeWinSize'| Sets the window size when the NERD tree is
643643
opened.
644644

645-
|'NERDTreeBmarksLabel'| Enables display of the Bookmarks label in
646-
the NERD tree.
647-
648-
|'NERDTreePressHelp'| Enables display of the 'Press ? for help' at
649-
the top of the NERD tree.
645+
|'NERDTreeMinimalUI'| Disables display of the 'Bookmarks' label and
646+
'Press ? for help' text.
650647

651648
------------------------------------------------------------------------------
652649
3.2. Customisation details *NERDTreeOptionDetails*
@@ -928,25 +925,14 @@ Default: 31.
928925
This option is used to change the size of the NERD tree when it is loaded.
929926

930927
------------------------------------------------------------------------------
931-
*'NERDTreeBmarksLabel'*
928+
*'NERDTreeMinimalUI'*
932929
Values: 0 or 1
933-
Default: 1
934-
935-
This options enables the 'Bookmarks' label. Use one of the following lines
936-
to set this option: >
937-
let NERDTreeBmarksLabel=0
938-
let NERDTreeBmarksLabel=1
939-
<
940-
941-
------------------------------------------------------------------------------
942-
*'NERDTreePressHelp'*
943-
Values: 0 or 1
944-
Default: 1
930+
Default: 0
945931

946-
This options enables the 'Press ? for help' text. Use one of the following
947-
lines to set this option: >
948-
let NERDTreePressHelp=0
949-
let NERDTreePressHelp=1
932+
This options disables the 'Bookmarks' label 'Press ? for help' text. Use one
933+
of the following lines to set this option: >
934+
let NERDTreeMinimalUI=0
935+
let NERDTreeMinimalUI=1
950936
<
951937

952938
==============================================================================

plugin/NERD_tree.vim

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ call s:initVariable("g:NERDTreeAutoCenter", 1)
5151
call s:initVariable("g:NERDTreeAutoCenterThreshold", 3)
5252
call s:initVariable("g:NERDTreeCaseSensitiveSort", 0)
5353
call s:initVariable("g:NERDTreeChDirMode", 0)
54-
call s:initVariable("g:NERDTreePressHelp", 1)
55-
call s:initVariable("g:NERDTreeBmarksLabel", 1)
54+
call s:initVariable("g:NERDTreeMinimalUI", 0)
5655
if !exists("g:NERDTreeIgnore")
5756
let g:NERDTreeIgnore = ['\~$']
5857
endif
@@ -2999,7 +2998,7 @@ function! s:dumpHelp()
29992998
let @h=@h."\" :ClearBookmarks [<names>]\n"
30002999
let @h=@h."\" :ClearAllBookmarks\n"
30013000
silent! put h
3002-
elseif g:NERDTreePressHelp == 1
3001+
elseif g:NERDTreeMinimalUI == 0
30033002
let @h="\" Press ". g:NERDTreeMapHelp ." for help\n"
30043003
silent! put h
30053004
endif
@@ -3242,7 +3241,7 @@ endfunction
32423241
"FUNCTION: s:renderBookmarks {{{2
32433242
function! s:renderBookmarks()
32443243

3245-
if g:NERDTreeBmarksLabel == 1
3244+
if g:NERDTreeMinimalUI == 0
32463245
call setline(line(".")+1, ">----------Bookmarks----------")
32473246
call cursor(line(".")+1, col("."))
32483247
endif
@@ -3272,7 +3271,7 @@ function! s:renderView()
32723271
call s:dumpHelp()
32733272

32743273
"delete the blank line before the help and add one after it
3275-
if g:NERDTreePressHelp == 1
3274+
if g:NERDTreeMinimalUI == 0
32763275
call setline(line(".")+1, "")
32773276
call cursor(line(".")+1, col("."))
32783277
endif

0 commit comments

Comments
 (0)