mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-09 20:03:48 -05:00
bugfix: make the vsplit maps work when the tree is on the left
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user