mirror of
https://github.com/preservim/nerdtree.git
synced 2024-10-18 13:50:21 +03:00
bugfix: make the vsplit maps work when the tree is on the left
This commit is contained in:
parent
1586cfdb03
commit
f2707106bd
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user