mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-12 13:23:49 -05:00
make the vertical splitting work with secondary trees
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user