merge hide bookmarks and press ? options
This commit is contained in:
parent
e88f436302
commit
999ba49857
@ -642,11 +642,8 @@ NERD tree. These options should be set in your vimrc.
|
|||||||
|'NERDTreeWinSize'| Sets the window size when the NERD tree is
|
|'NERDTreeWinSize'| Sets the window size when the NERD tree is
|
||||||
opened.
|
opened.
|
||||||
|
|
||||||
|'NERDTreeBmarksLabel'| Enables display of the Bookmarks label in
|
|'NERDTreeMinimalUI'| Disables display of the 'Bookmarks' label and
|
||||||
the NERD tree.
|
'Press ? for help' text.
|
||||||
|
|
||||||
|'NERDTreePressHelp'| Enables display of the 'Press ? for help' at
|
|
||||||
the top of the NERD tree.
|
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
3.2. Customisation details *NERDTreeOptionDetails*
|
3.2. Customisation details *NERDTreeOptionDetails*
|
||||||
@ -928,25 +925,14 @@ Default: 31.
|
|||||||
This option is used to change the size of the NERD tree when it is loaded.
|
This option is used to change the size of the NERD tree when it is loaded.
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
*'NERDTreeBmarksLabel'*
|
*'NERDTreeMinimalUI'*
|
||||||
Values: 0 or 1
|
Values: 0 or 1
|
||||||
Default: 1
|
Default: 0
|
||||||
|
|
||||||
This options enables the 'Bookmarks' label. Use one of the following lines
|
This options disables the 'Bookmarks' label 'Press ? for help' text. Use one
|
||||||
to set this option: >
|
of the following lines to set this option: >
|
||||||
let NERDTreeBmarksLabel=0
|
let NERDTreeMinimalUI=0
|
||||||
let NERDTreeBmarksLabel=1
|
let NERDTreeMinimalUI=1
|
||||||
<
|
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
|
||||||
*'NERDTreePressHelp'*
|
|
||||||
Values: 0 or 1
|
|
||||||
Default: 1
|
|
||||||
|
|
||||||
This options enables the 'Press ? for help' text. Use one of the following
|
|
||||||
lines to set this option: >
|
|
||||||
let NERDTreePressHelp=0
|
|
||||||
let NERDTreePressHelp=1
|
|
||||||
<
|
<
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
|
@ -51,8 +51,7 @@ call s:initVariable("g:NERDTreeAutoCenter", 1)
|
|||||||
call s:initVariable("g:NERDTreeAutoCenterThreshold", 3)
|
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:NERDTreePressHelp", 1)
|
call s:initVariable("g:NERDTreeMinimalUI", 0)
|
||||||
call s:initVariable("g:NERDTreeBmarksLabel", 1)
|
|
||||||
if !exists("g:NERDTreeIgnore")
|
if !exists("g:NERDTreeIgnore")
|
||||||
let g:NERDTreeIgnore = ['\~$']
|
let g:NERDTreeIgnore = ['\~$']
|
||||||
endif
|
endif
|
||||||
@ -2999,7 +2998,7 @@ function! s:dumpHelp()
|
|||||||
let @h=@h."\" :ClearBookmarks [<names>]\n"
|
let @h=@h."\" :ClearBookmarks [<names>]\n"
|
||||||
let @h=@h."\" :ClearAllBookmarks\n"
|
let @h=@h."\" :ClearAllBookmarks\n"
|
||||||
silent! put h
|
silent! put h
|
||||||
elseif g:NERDTreePressHelp == 1
|
elseif g:NERDTreeMinimalUI == 0
|
||||||
let @h="\" Press ". g:NERDTreeMapHelp ." for help\n"
|
let @h="\" Press ". g:NERDTreeMapHelp ." for help\n"
|
||||||
silent! put h
|
silent! put h
|
||||||
endif
|
endif
|
||||||
@ -3242,7 +3241,7 @@ endfunction
|
|||||||
"FUNCTION: s:renderBookmarks {{{2
|
"FUNCTION: s:renderBookmarks {{{2
|
||||||
function! s:renderBookmarks()
|
function! s:renderBookmarks()
|
||||||
|
|
||||||
if g:NERDTreeBmarksLabel == 1
|
if g:NERDTreeMinimalUI == 0
|
||||||
call setline(line(".")+1, ">----------Bookmarks----------")
|
call setline(line(".")+1, ">----------Bookmarks----------")
|
||||||
call cursor(line(".")+1, col("."))
|
call cursor(line(".")+1, col("."))
|
||||||
endif
|
endif
|
||||||
@ -3272,7 +3271,7 @@ function! s:renderView()
|
|||||||
call s:dumpHelp()
|
call s:dumpHelp()
|
||||||
|
|
||||||
"delete the blank line before the help and add one after it
|
"delete the blank line before the help and add one after it
|
||||||
if g:NERDTreePressHelp == 1
|
if g:NERDTreeMinimalUI == 0
|
||||||
call setline(line(".")+1, "")
|
call setline(line(".")+1, "")
|
||||||
call cursor(line(".")+1, col("."))
|
call cursor(line(".")+1, col("."))
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user