mirror of
https://github.com/preservim/nerdtree.git
synced 2024-10-18 22:00:21 +03:00
enable NERDTreeDirArrows by default except on windows
This commit is contained in:
parent
30f6bcc30c
commit
49b88757b0
@ -27,6 +27,8 @@ let loaded_nerd_tree = 1
|
|||||||
let s:old_cpo = &cpo
|
let s:old_cpo = &cpo
|
||||||
set cpo&vim
|
set cpo&vim
|
||||||
|
|
||||||
|
let s:running_windows = has("win16") || has("win32") || has("win64")
|
||||||
|
|
||||||
"Function: s:initVariable() function {{{2
|
"Function: s:initVariable() function {{{2
|
||||||
"This function is used to initialise a given variable to a given value. The
|
"This function is used to initialise a given variable to a given value. The
|
||||||
"variable is only initialised if it does not exist prior
|
"variable is only initialised if it does not exist prior
|
||||||
@ -66,7 +68,7 @@ call s:initVariable("g:NERDTreeShowFiles", 1)
|
|||||||
call s:initVariable("g:NERDTreeShowHidden", 0)
|
call s:initVariable("g:NERDTreeShowHidden", 0)
|
||||||
call s:initVariable("g:NERDTreeShowLineNumbers", 0)
|
call s:initVariable("g:NERDTreeShowLineNumbers", 0)
|
||||||
call s:initVariable("g:NERDTreeSortDirs", 1)
|
call s:initVariable("g:NERDTreeSortDirs", 1)
|
||||||
call s:initVariable("g:NERDTreeDirArrows", 0)
|
call s:initVariable("g:NERDTreeDirArrows", !s:running_windows)
|
||||||
|
|
||||||
if !exists("g:NERDTreeSortOrder")
|
if !exists("g:NERDTreeSortOrder")
|
||||||
let g:NERDTreeSortOrder = ['\/$', '*', '\.swp$', '\.bak$', '\~$']
|
let g:NERDTreeSortOrder = ['\/$', '*', '\.swp$', '\.bak$', '\~$']
|
||||||
@ -92,8 +94,6 @@ endif
|
|||||||
call s:initVariable("g:NERDTreeWinPos", "left")
|
call s:initVariable("g:NERDTreeWinPos", "left")
|
||||||
call s:initVariable("g:NERDTreeWinSize", 31)
|
call s:initVariable("g:NERDTreeWinSize", 31)
|
||||||
|
|
||||||
let s:running_windows = has("win16") || has("win32") || has("win64")
|
|
||||||
|
|
||||||
"init the shell commands that will be used to copy nodes, and remove dir trees
|
"init the shell commands that will be used to copy nodes, and remove dir trees
|
||||||
"
|
"
|
||||||
"Note: the space after the command is important
|
"Note: the space after the command is important
|
||||||
|
Loading…
Reference in New Issue
Block a user