make the vertical splitting work with secondary trees
This commit is contained in:
parent
63ee15ca6e
commit
0f2effb049
@ -883,6 +883,11 @@ endfunction
|
|||||||
"FUNCTION: TreeFileNode.openVSplit() {{{3
|
"FUNCTION: TreeFileNode.openVSplit() {{{3
|
||||||
"Open this node in a new vertical window
|
"Open this node in a new vertical window
|
||||||
function! s:TreeFileNode.openVSplit()
|
function! s:TreeFileNode.openVSplit()
|
||||||
|
if b:NERDTreeType == "secondary"
|
||||||
|
exec "vnew " . self.path.strForEditCmd()
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
|
||||||
let winwidth = winwidth(".")
|
let winwidth = winwidth(".")
|
||||||
if winnr("$")==1
|
if winnr("$")==1
|
||||||
let winwidth = g:NERDTreeWinSize
|
let winwidth = g:NERDTreeWinSize
|
||||||
|
Loading…
x
Reference in New Issue
Block a user