nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit 020c635cca5ca3f02816933e885ebf2565fb5f30
parent 6a77424c253b1e2ec0d8f7d1f00a21b2fb27cb07
Author: marty <marty@yeliz.(none)>
Date:   Fri, 18 Jan 2008 21:47:21 +1300

changed the key for the filesystem  menu to be mnemonic

Diffstat:
Mplugin/NERD_tree.vim | 16++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim
@@ -2829,11 +2829,11 @@ function! s:ShowFileSystemMenu()
     let prompt = "NERDTree Filesystem Menu\n" .
        \ "==========================================================\n". 
        \ "Select the desired operation:                             \n" . 
-       \ " (1) - Add a childnode\n".
-       \ " (2) - Rename the current node\n".
-       \ " (3) - Delete the current node\n"
+       \ " (a)dd a childnode\n".
+       \ " (m)ove the current node\n".
+       \ " (d)elete the current node\n"
     if s:oPath.CopyingSupported() 
-        let prompt = prompt . " (4) - Copy the current node\n\n"
+        let prompt = prompt . " (c)opy the current node\n\n"
     else
         let prompt = prompt . " \n"
     endif
@@ -2842,13 +2842,13 @@ function! s:ShowFileSystemMenu()
 
     let choice = nr2char(getchar())
 
-    if choice == 1
+    if choice ==? "a"
         call s:InsertNewNode()
-    elseif choice == 2
+    elseif choice ==? "m"
         call s:RenameCurrent()
-    elseif choice == 3
+    elseif choice ==? "d"
         call s:DeleteNode()
-    elseif choice == 4 && s:oPath.CopyingSupported()
+    elseif choice ==? "c" && s:oPath.CopyingSupported()
         call s:CopyNode()
     endif
 endfunction