diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index b0a2f8b..1ea460d 100644 --- 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