mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-09 11:53:48 -05:00
do the vertical split according to the users settings
This commit is contained in:
@@ -888,11 +888,11 @@ function! s:TreeFileNode.openVSplit()
|
|||||||
let winwidth = g:NERDTreeWinSize
|
let winwidth = g:NERDTreeWinSize
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let splitLocation = g:NERDTreeWinPos == "left" ? "rightbelow " : "leftabove "
|
call s:exec("wincmd p")
|
||||||
exec splitLocation . "vertical new " . self.path.strForEditCmd()
|
exec "vnew " . 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:putCursorInTreeWin()
|
||||||
exec("silent vertical resize ". winwidth)
|
exec("silent vertical resize ". winwidth)
|
||||||
call s:exec('wincmd p')
|
call s:exec('wincmd p')
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user