From 8d20ae913aa0ed068f1afcf5993baf1d3f39b758 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Thu, 18 Dec 2008 23:23:28 +1300 Subject: [PATCH] adjust the quickhelp for primary vs secondary trees --- plugin/NERD_tree.vim | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index 2d0d90b..3a0bb0a 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -2016,8 +2016,14 @@ function! s:dumpHelp() let @h=@h."\" ============================\n" let @h=@h."\" File node mappings~\n" let @h=@h."\" ". (g:NERDTreeMouseMode == 3 ? "single" : "double") ."-click,\n" - let @h=@h."\" ". g:NERDTreeMapActivateNode .": open in prev window\n" - let @h=@h."\" ". g:NERDTreeMapPreview .": preview\n" + if b:NERDTreeType == "primary" + let @h=@h."\" ". g:NERDTreeMapActivateNode .": open in prev window\n" + else + let @h=@h."\" ". g:NERDTreeMapActivateNode .": open in current window\n" + endif + if b:NERDTreeType == "primary" + let @h=@h."\" ". g:NERDTreeMapPreview .": preview\n" + endif let @h=@h."\" ". g:NERDTreeMapOpenInTab.": open in new tab\n" let @h=@h."\" ". g:NERDTreeMapOpenInTabSilent .": open in new tab silently\n" let @h=@h."\" middle-click,\n"