commit 36e440255045ff49641397490bdeb25cdef331f5
parent effb5d4de08d9ef7c3b7ffc2ad759d7947dc0728
Author: marty <martin_grenfell@msn.com>
Date: Fri, 4 Sep 2009 00:36:01 +1200
update the API doc
Diffstat:
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/doc/NERD_tree.txt b/doc/NERD_tree.txt
@@ -928,10 +928,6 @@ The NERD tree script allows you to add custom key mappings and menu items via a
set of API calls. Any such scripts should be placed in ~/.vim/nerdtree_plugin/
(*nix) or ~/vimfiles/nerdtree_plugin (windows).
-NERDTreeRender() *NERDTreeRender()*
- Re-renders the NERD tree buffer. Useful if you change the state of the
- tree and you want to it to be reflected in the UI.
-
------------------------------------------------------------------------------
4.1. Key map API *NERDTreeKeymapAPI*
@@ -952,7 +948,7 @@ NERDTreeAddKeyMap({options}) *NERDTreeAddKeyMap()*
function! NERDTreeEchoCurrentNode()
let n = g:NERDTreeFileNode.GetSelected()
if n != {}
- echomsg 'Current node: ' . n.path.str(0)
+ echomsg 'Current node: ' . n.path.str()
endif
endfunction
<
@@ -994,7 +990,7 @@ NERDTreeAddMenuItem({options}) *NERDTreeAddMenuItem()*
"isActiveCallback" - a function that will be called to determine whether
this menu item will be displayed or not. The callback function must return
0 or 1.
- "parent" - if a menu item belongs under a submenu then a parent key must be
+ "parent" - if the menu item belongs under a submenu then this key must be
specified. This value for this key will be the object that
was returned when the submenu was created with |NERDTreeAddSubmenu()|.
@@ -1042,6 +1038,11 @@ Where selecting "a (s)ub menu" will lead to a second menu: >
When any of the 3 concrete menu items are selected the function "SomeFunction"
will be called.
+------------------------------------------------------------------------------
+NERDTreeRender() *NERDTreeRender()*
+ Re-renders the NERD tree buffer. Useful if you change the state of the
+ tree and you want to it to be reflected in the UI.
+
==============================================================================
5. About *NERDTreeAbout*