mirror of
https://github.com/preservim/nerdtree.git
synced 2024-10-18 22:00: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
|
let winwidth = g:NERDTreeWinSize
|
||||||
endif
|
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
|
"resize the nerd tree back to the original size
|
||||||
call s:exec("wincmd p")
|
call s:exec("wincmd p")
|
||||||
|
Loading…
Reference in New Issue
Block a user