commit 6da7f317a3afc67652e42633cdafca7b26c22509
parent d0d755ff871136b6880314e308b53fd4d06de17f
Author: Martin Grenfell <martin_grenfell@msn.com>
Date: Thu, 18 Dec 2008 12:55:06 +1300
when in a secondary tree, just use :split for the 'i' mapping
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim
@@ -2469,6 +2469,12 @@ endfunction
"ARGS:
"treenode: file node to open
function! s:openNodeSplit(treenode)
+
+ if b:NERDTreeType == "secondary"
+ exec "split " . a:treenode.path.strForEditCmd()
+ return
+ endif
+
" Save the user's settings for splitbelow and splitright
let savesplitbelow=&splitbelow
let savesplitright=&splitright