Compare commits

...

5 Commits
2.7.1 ... 2.8.0

Author SHA1 Message Date
Martin Grenfell
c008fb3983 changed the version to 2.8.0 for the next release 2008-03-31 18:22:29 +13:00
Martin Grenfell
8654b98b09 gitignored some stuff 2008-03-10 21:26:51 +13:00
Martin Grenfell
5e3e95d168 added a credit and an entry in the changelog 2008-03-10 20:46:56 +13:00
Martin Grenfell
faabc8c47d documented the NERDTreeShowLineNumbers option 2008-03-10 20:44:16 +13:00
Martin Grenfell
91d5a52c39 added the NERDTreeShowLineNumbers option into the script 2008-03-10 20:39:30 +13:00
3 changed files with 33 additions and 4 deletions

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
*~
*.swp

View File

@@ -477,6 +477,9 @@ NERD tree. These options should be set in your vimrc.
|NERDTreeShowHidden| Tells the NERD tree whether to display hidden
files on startup.
|NERDTreeShowLineNumbers| Tells the NERD tree whether to display line
numbers in the tree window.
|NERDTreeSortOrder| Tell the NERD tree how to sort the nodes in
the tree.
@@ -658,6 +661,17 @@ Use one of the follow lines to set this option: >
let NERDTreeShowHidden=0
let NERDTreeShowHidden=1
<
------------------------------------------------------------------------------
*NERDTreeShowLineNumbers*
Values: 0 or 1.
Default: 0.
This option tells vim whether to display line numbers for the NERD tree
window. Use one of the follow lines to set this option: >
let NERDTreeShowLineNumbers=0
let NERDTreeShowLineNumbers=1
<
------------------------------------------------------------------------------
*NERDTreeSortOrder*
@@ -770,6 +784,10 @@ fridge for later ;)
==============================================================================
7. Changelog *NERDTreeChangelog*
2.8.0
- added an option to enable/disable line numbers in the NERD tree window,
thanks to Olivier Yiptong for the email.
2.7.1
- Changed the keys for the filesystem menu to be mnemonic rather than
arbitrary integers
@@ -978,3 +996,6 @@ in 2.6.0
Thanks to Niels Aan de Brugh for the suggestion that the script now split the
window if you try to open a file in a window containing a modified buffer when
the &hidden option is set.
Thanks to Olivier Yiptong for prompting me to make line numbers in the
NERD tree window optional.

View File

@@ -1,7 +1,7 @@
" vim global plugin that provides a nice tree explorer
" Last Change: 18 jan 2008
" Last Change: 31 March 2008
" Maintainer: Martin Grenfell <martin_grenfell at msn dot com>
let s:NERD_tree_version = '2.7.1'
let s:NERD_tree_version = '2.8.0'
" SECTION: Script init stuff {{{1
"============================================================
@@ -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")
@@ -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