added the NERDTreeShowLineNumbers option into the script

This commit is contained in:
Martin Grenfell 2008-03-10 20:39:30 +13:00
parent a5bc034851
commit 91d5a52c39

View File

@ -43,8 +43,9 @@ endif
call s:InitVariable("g:NERDTreeHighlightCursorline", 1) call s:InitVariable("g:NERDTreeHighlightCursorline", 1)
call s:InitVariable("g:NERDTreeMouseMode", 1) call s:InitVariable("g:NERDTreeMouseMode", 1)
call s:InitVariable("g:NERDTreeNotificationThreshold", 100) call s:InitVariable("g:NERDTreeNotificationThreshold", 100)
call s:InitVariable("g:NERDTreeShowHidden", 0)
call s:InitVariable("g:NERDTreeShowFiles", 1) call s:InitVariable("g:NERDTreeShowFiles", 1)
call s:InitVariable("g:NERDTreeShowHidden", 0)
call s:InitVariable("g:NERDTreeShowLineNumbers", 0)
call s:InitVariable("g:NERDTreeSortDirs", 1) call s:InitVariable("g:NERDTreeSortDirs", 1)
if !exists("g:NERDTreeSortOrder") if !exists("g:NERDTreeSortOrder")
@ -1442,7 +1443,12 @@ function! s:CreateTreeWin()
setlocal foldcolumn=0 setlocal foldcolumn=0
setlocal nobuflisted setlocal nobuflisted
setlocal nospell setlocal nospell
setlocal nonu if g:NERDTreeShowLineNumbers
setlocal nu
else
setlocal nonu
endif
iabc <buffer> iabc <buffer>
if g:NERDTreeHighlightCursorline if g:NERDTreeHighlightCursorline