From bc41c51f930233519e7fea52d2973e4d860dba5c Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Tue, 10 Jun 2008 22:50:52 +1200 Subject: [PATCH] doc :RevealMark --- doc/NERD_tree.txt | 5 +++++ plugin/NERD_tree.vim | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/NERD_tree.txt b/doc/NERD_tree.txt index 3245ca2..e0a69de 100644 --- a/doc/NERD_tree.txt +++ b/doc/NERD_tree.txt @@ -120,6 +120,11 @@ The following features and functionality are provided by the NERD tree: current tree will be used, otherwise a fresh tree will be opened. Note that if points to a file then its parent will be used instead. +:RevealMark + If the node is cached under the current root then it will be revealed + (i.e. directory nodes above it will be opened) and the cursor will be + placed on it. + :OpenMark must point to a file. The file is opened as though |NERDTree-o| was applied. If the node is cached under the current root then it will be diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index 3ae4b73..7538363 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -1779,8 +1779,8 @@ function! s:DumpHelp() let @h=@h."\" Mark commands~\n" let @h=@h."\" :Mark \n" let @h=@h."\" :MarkToRoot \n" - let @h=@h."\" :OpenMark \n" let @h=@h."\" :RevealMark \n" + let @h=@h."\" :OpenMark \n" let @h=@h."\" :ClearMarks []\n" let @h=@h."\" :ClearAllMarks\n" else