From f2707106bde0e67eef0734d46c1aa52d62850184 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Sun, 11 Jan 2009 11:14:19 +1300 Subject: [PATCH] bugfix: make the vsplit maps work when the tree is on the left --- plugin/NERD_tree.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index d36d3f9..fe6aa6c 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -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")