make the vertical splitting work with secondary trees

This commit is contained in:
Martin Grenfell 2009-01-14 15:54:26 +13:00
parent 63ee15ca6e
commit 0f2effb049

View File

@ -883,6 +883,11 @@ endfunction
"FUNCTION: TreeFileNode.openVSplit() {{{3
"Open this node in a new vertical window
function! s:TreeFileNode.openVSplit()
if b:NERDTreeType == "secondary"
exec "vnew " . self.path.strForEditCmd()
return
endif
let winwidth = winwidth(".")
if winnr("$")==1
let winwidth = g:NERDTreeWinSize