nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit 8996ea5bb56c0af1b1df32f1990f37e224d25112
parent 0b44415a3302030b56755cc1135ca9ca57dc1ada
Author: Arseny Zarechnev <cyanidesign@gmail.com>
Date:   Sun,  4 Oct 2015 01:54:15 +0100

Fix MacOS detection for menu, fixes #478

Diffstat:
Mnerdtree_plugin/fs_menu.vim | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nerdtree_plugin/fs_menu.vim b/nerdtree_plugin/fs_menu.vim
@@ -24,7 +24,7 @@ call NERDTreeAddMenuItem({'text': '(a)dd a childnode', 'shortcut': 'a', 'callbac
 call NERDTreeAddMenuItem({'text': '(m)ove the current node', 'shortcut': 'm', 'callback': 'NERDTreeMoveNode'})
 call NERDTreeAddMenuItem({'text': '(d)elete the current node', 'shortcut': 'd', 'callback': 'NERDTreeDeleteNode'})
 
-if has("gui_mac") || has("gui_macvim")
+if has("gui_mac") || has("gui_macvim") || has("mac")
     call NERDTreeAddMenuItem({'text': '(r)eveal in Finder the current node', 'shortcut': 'r', 'callback': 'NERDTreeRevealInFinder'})
     call NERDTreeAddMenuItem({'text': '(o)pen the current node with system editor', 'shortcut': 'o', 'callback': 'NERDTreeExecuteFile'})
     call NERDTreeAddMenuItem({'text': '(q)uicklook the current node', 'shortcut': 'q', 'callback': 'NERDTreeQuickLook'})