Skip to content

Commit

Permalink
added the NERDTreeShowLineNumbers option into the script
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Grenfell committed Mar 10, 2008
1 parent a5bc034 commit 91d5a52
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions plugin/NERD_tree.vim
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ endif
call s:InitVariable("g:NERDTreeHighlightCursorline", 1)
call s:InitVariable("g:NERDTreeMouseMode", 1)
call s:InitVariable("g:NERDTreeNotificationThreshold", 100)
call s:InitVariable("g:NERDTreeShowHidden", 0)
call s:InitVariable("g:NERDTreeShowFiles", 1)
call s:InitVariable("g:NERDTreeShowHidden", 0)
call s:InitVariable("g:NERDTreeShowLineNumbers", 0)
call s:InitVariable("g:NERDTreeSortDirs", 1)

if !exists("g:NERDTreeSortOrder")
Expand Down Expand Up @@ -1442,7 +1443,12 @@ function! s:CreateTreeWin()
setlocal foldcolumn=0
setlocal nobuflisted
setlocal nospell
setlocal nonu
if g:NERDTreeShowLineNumbers
setlocal nu
else
setlocal nonu
endif

iabc <buffer>

if g:NERDTreeHighlightCursorline
Expand Down

0 comments on commit 91d5a52

Please sign in to comment.