@@ -51,6 +51,7 @@ call s:initVariable("g:NERDTreeAutoCenter", 1)
51
51
call s: initVariable (" g:NERDTreeAutoCenterThreshold" , 3 )
52
52
call s: initVariable (" g:NERDTreeCaseSensitiveSort" , 0 )
53
53
call s: initVariable (" g:NERDTreeChDirMode" , 0 )
54
+ call s: initVariable (" g:NERDTreeShowPressForHelp" , 1 )
54
55
if ! exists (" g:NERDTreeIgnore" )
55
56
let g: NERDTreeIgnore = [' \~$' ]
56
57
endif
@@ -2996,12 +2997,12 @@ function! s:dumpHelp()
2996
2997
let @h = @h ." \" :OpenBookmark <name>\n "
2997
2998
let @h = @h ." \" :ClearBookmarks [<names>]\n "
2998
2999
let @h = @h ." \" :ClearAllBookmarks\n "
2999
- else
3000
+ silent ! put h
3001
+ elseif g: NERDTreeShowPressForHelp == 1
3000
3002
let @h = " \" Press " . g: NERDTreeMapHelp ." for help\n "
3003
+ silent ! put h
3001
3004
endif
3002
3005
3003
- silent ! put h
3004
-
3005
3006
let @h = old_h
3006
3007
endfunction
3007
3008
" FUNCTION: s:echo {{{2
@@ -3268,8 +3269,10 @@ function! s:renderView()
3268
3269
call s: dumpHelp ()
3269
3270
3270
3271
" delete the blank line before the help and add one after it
3271
- call setline (line (" ." )+ 1 , " " )
3272
- call cursor (line (" ." )+ 1 , col (" ." ))
3272
+ if g: NERDTreeShowPressForHelp == 1
3273
+ call setline (line (" ." )+ 1 , " " )
3274
+ call cursor (line (" ." )+ 1 , col (" ." ))
3275
+ endif
3273
3276
3274
3277
if b: NERDTreeShowBookmarks
3275
3278
call s: renderBookmarks ()
0 commit comments