diff --git a/lib/nerdtree/menu_controller.vim b/lib/nerdtree/menu_controller.vim index 05e82d9..874c09d 100644 --- a/lib/nerdtree/menu_controller.vim +++ b/lib/nerdtree/menu_controller.vim @@ -62,9 +62,10 @@ function! s:MenuController._echoPrompt() if self.isMinimal() let selection = self.menuItems[self.selection].text + let keyword = matchstr(selection, "\([^ ]*") let shortcuts = map(copy(self.menuItems), "v:val['shortcut']") - let shortcuts[self.selection] = " " . split(selection)[0] . " " + let shortcuts[self.selection] = " " . keyword . " " echo "Menu: [" . join(shortcuts, ",") . "] (" . navHelp . " or shortcut): " else