commit f2707106bde0e67eef0734d46c1aa52d62850184 parent 1586cfdb03467b873b2cbc7148e2e3e4817b5364 Author: Martin Grenfell <martin_grenfell@msn.com> Date: Sun, 11 Jan 2009 11:14:19 +1300 bugfix: make the vsplit maps work when the tree is on the left Diffstat:
| M | plugin/NERD_tree.vim | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-) diff --git 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")
