nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit 63ee15ca6ecab2e18e2c56c247bac5d82f631782
parent f8a105d9725d193d31b5da45a7e3ca6ce55ec5b9
Author: Martin Grenfell <martin_grenfell@msn.com>
Date:   Wed, 14 Jan 2009 15:37:19 +1300

do the vertical split according to the users settings

Diffstat:
Mplugin/NERD_tree.vim | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim
@@ -888,11 +888,11 @@ function! s:TreeFileNode.openVSplit()
         let winwidth = g:NERDTreeWinSize
     endif
 
-    let splitLocation = g:NERDTreeWinPos == "left" ? "rightbelow " : "leftabove "
-    exec splitLocation . "vertical new " . self.path.strForEditCmd()
+    call s:exec("wincmd p")
+    exec "vnew " . self.path.strForEditCmd()
 
     "resize the nerd tree back to the original size
-    call s:exec("wincmd p")
+    call s:putCursorInTreeWin()
     exec("silent vertical resize ". winwidth)
     call s:exec('wincmd p')
 endfunction