when in a secondary tree, just use :split for the 'i' mapping
This commit is contained in:
parent
d0d755ff87
commit
6da7f317a3
@ -2469,6 +2469,12 @@ endfunction
|
|||||||
"ARGS:
|
"ARGS:
|
||||||
"treenode: file node to open
|
"treenode: file node to open
|
||||||
function! s:openNodeSplit(treenode)
|
function! s:openNodeSplit(treenode)
|
||||||
|
|
||||||
|
if b:NERDTreeType == "secondary"
|
||||||
|
exec "split " . a:treenode.path.strForEditCmd()
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
|
||||||
" Save the user's settings for splitbelow and splitright
|
" Save the user's settings for splitbelow and splitright
|
||||||
let savesplitbelow=&splitbelow
|
let savesplitbelow=&splitbelow
|
||||||
let savesplitright=&splitright
|
let savesplitright=&splitright
|
||||||
|
Loading…
x
Reference in New Issue
Block a user