when in a secondary tree, just use :split for the 'i' mapping

This commit is contained in:
Martin Grenfell 2008-12-18 12:55:06 +13:00
parent d0d755ff87
commit 6da7f317a3

View File

@ -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