bugfix: make the vsplit maps work when the tree is on the left

This commit is contained in:
Martin Grenfell 2009-01-11 11:14:19 +13:00
parent 1586cfdb03
commit f2707106bd

View File

@ -890,7 +890,8 @@ function! s:TreeFileNode.openVSplit()
let winwidth = g:NERDTreeWinSize
endif
exec "vsplit " . self.path.strForEditCmd()
let splitLocation = g:NERDTreeWinPos == "left" ? "rightbelow " : "leftabove "
exec splitLocation . "vertical new " . self.path.strForEditCmd()
"resize the nerd tree back to the original size
call s:exec("wincmd p")