mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-09 11:53:48 -05:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c008fb3983 | ||
|
|
8654b98b09 | ||
|
|
5e3e95d168 | ||
|
|
faabc8c47d | ||
|
|
91d5a52c39 |
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
*~
|
||||||
|
*.swp
|
||||||
@@ -477,6 +477,9 @@ NERD tree. These options should be set in your vimrc.
|
|||||||
|NERDTreeShowHidden| Tells the NERD tree whether to display hidden
|
|NERDTreeShowHidden| Tells the NERD tree whether to display hidden
|
||||||
files on startup.
|
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
|
|NERDTreeSortOrder| Tell the NERD tree how to sort the nodes in
|
||||||
the tree.
|
the tree.
|
||||||
|
|
||||||
@@ -659,6 +662,17 @@ Use one of the follow lines to set this option: >
|
|||||||
let NERDTreeShowHidden=1
|
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*
|
*NERDTreeSortOrder*
|
||||||
Values: a list of regular expressions.
|
Values: a list of regular expressions.
|
||||||
@@ -770,6 +784,10 @@ fridge for later ;)
|
|||||||
==============================================================================
|
==============================================================================
|
||||||
7. Changelog *NERDTreeChangelog*
|
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
|
2.7.1
|
||||||
- Changed the keys for the filesystem menu to be mnemonic rather than
|
- Changed the keys for the filesystem menu to be mnemonic rather than
|
||||||
arbitrary integers
|
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
|
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
|
window if you try to open a file in a window containing a modified buffer when
|
||||||
the &hidden option is set.
|
the &hidden option is set.
|
||||||
|
|
||||||
|
Thanks to Olivier Yiptong for prompting me to make line numbers in the
|
||||||
|
NERD tree window optional.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
" vim global plugin that provides a nice tree explorer
|
" 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>
|
" 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
|
" SECTION: Script init stuff {{{1
|
||||||
"============================================================
|
"============================================================
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user