From e9d6a7209ce80d042356f2eff79203f305140d8c Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Tue, 21 Jul 2009 19:26:48 +1200 Subject: [PATCH] update the fs menu to use the new api --- ftplugin/nerdtree_fs_menu.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ftplugin/nerdtree_fs_menu.vim b/ftplugin/nerdtree_fs_menu.vim index 956721a..7522a0e 100644 --- a/ftplugin/nerdtree_fs_menu.vim +++ b/ftplugin/nerdtree_fs_menu.vim @@ -15,11 +15,11 @@ if exists("g:loaded_nerdtree_fs_menu") endif let g:loaded_nerdtree_fs_menu = 1 -call NERDTreeAddMenuItem('(a)dd a childnode', 'a', 'NERDTreeAddNode') -call NERDTreeAddMenuItem('(m)ove the curent node', 'm', 'NERDTreeMoveNode') -call NERDTreeAddMenuItem('(d)elete the curent node', 'd', 'NERDTreeDeleteNode') +call NERDTreeAddMenuItem({'text': '(a)dd a childnode', 'shortcut': 'a', 'callback': 'NERDTreeAddNode'}) +call NERDTreeAddMenuItem({'text': '(m)ove the curent node', 'shortcut': 'm', 'callback': 'NERDTreeMoveNode'}) +call NERDTreeAddMenuItem({'text': '(d)elete the curent node', 'shortcut': 'd', 'callback': 'NERDTreeDeleteNode'}) if g:NERDTreePath.CopyingSupported() - call NERDTreeAddMenuItem('(c)copy the current node', 'c', 'NERDTreeCopyNode') + call NERDTreeAddMenuItem({'text': '(c)copy the current node', 'shortcut': 'c', 'callback': 'NERDTreeCopyNode'}) endif "FUNCTION: s:echo(msg){{{1