Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

Commit c1dd105

Browse files
committed
Remove obsolete options
1 parent ec48489 commit c1dd105

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

autoload/rails.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ function! s:error(str)
363363
endfunction
364364

365365
function! s:debug(str)
366-
if g:rails_debug
366+
if exists("g:rails_debug") && g:rails_debug
367367
echohl Debug
368368
echomsg a:str
369369
echohl None

doc/rails.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,8 +1016,9 @@ can be enabled by setting them to 1 in your vimrc, and disabled by setting
10161016
them to 0. >
10171017
let g:rails_some_option=1
10181018
let g:rails_some_option=0
1019-
Most of these should never need to be used. The two that might be interesting
1020-
are |g:rails_expensive| and |g:rails_default_database|.
1019+
Most of these seldom need to be used. So seldom, in fact, that you should
1020+
notify the |rails-plugin-author| if you find any of them useful, as nearly all
1021+
are being considered for removal.
10211022

10221023
*g:loaded_rails* >
10231024
let g:loaded_rails=1

plugin/rails.vim

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,11 @@ function! s:SetOptDefault(opt,val)
6666
endif
6767
endfunction
6868

69-
call s:SetOptDefault("rails_level",3)
7069
call s:SetOptDefault("rails_statusline",1)
7170
call s:SetOptDefault("rails_syntax",1)
7271
call s:SetOptDefault("rails_mappings",1)
7372
call s:SetOptDefault("rails_abbreviations",1)
74-
call s:SetOptDefault("rails_expensive",1+0*(has("win32")||has("win32unix")))
73+
call s:SetOptDefault("rails_expensive",1)
7574
call s:SetOptDefault("rails_dbext",g:rails_expensive)
7675
call s:SetOptDefault("rails_default_file","README")
7776
call s:SetOptDefault("rails_default_database","")
@@ -80,7 +79,6 @@ call s:SetOptDefault("rails_modelines",0)
8079
call s:SetOptDefault("rails_menu",1)
8180
call s:SetOptDefault("rails_gnu_screen",1)
8281
call s:SetOptDefault("rails_history_size",5)
83-
call s:SetOptDefault("rails_debug",0)
8482
call s:SetOptDefault("rails_generators","controller\nintegration_test\nmailer\nmigration\nmodel\nobserver\nplugin\nresource\nscaffold\nsession_migration")
8583
if g:rails_dbext
8684
if exists("g:loaded_dbext") && executable("sqlite3") && ! executable("sqlite")

0 commit comments

Comments
 (0)