Skip to content

Commit f52871c

Browse files
committed
Disable GUI menu in MacVim by default
1 parent ea13795 commit f52871c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

doc/rails.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,8 @@ Modelines are deprecated and disabled by default.
10681068
*g:rails_menu* >
10691069
let g:rails_menu=1
10701070
When 2, a Rails menu is created. When 1, this menu is a submenu under the
1071-
Plugin menu. The default is 1.
1071+
Plugin menu. The default is 1 except on MacVim, where reports of weird
1072+
terminal output have led to it being disabled by default.
10721073

10731074
*g:rails_url* >
10741075
let g:rails_url='http://localhost:3000/'

plugin/rails.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ call s:SetOptDefault("rails_ctags_arguments","--exclude=\"*.js\"")
6060
call s:SetOptDefault("rails_default_file","README")
6161
call s:SetOptDefault("rails_root_url",'http://localhost:3000/')
6262
call s:SetOptDefault("rails_modelines",0)
63-
call s:SetOptDefault("rails_menu",1)
63+
call s:SetOptDefault("rails_menu",!has('mac'))
6464
call s:SetOptDefault("rails_gnu_screen",1)
6565
call s:SetOptDefault("rails_history_size",5)
6666
call s:SetOptDefault("rails_generators","controller\ngenerator\nhelper\nintegration_test\nmailer\nmetal\nmigration\nmodel\nobserver\nperformance_test\nplugin\nresource\nscaffold\nscaffold_controller\nsession_migration\nstylesheets")

0 commit comments

Comments
 (0)