Skip to content

Commit 6ed3d4f

Browse files
committed
Only add .rb to 'suffixesadd'
1 parent cdec6c8 commit 6ed3d4f

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

autoload/rails.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4460,7 +4460,7 @@ function! s:BufSettings()
44604460
let &l:tags = rp . '/tmp/tags,' . &tags . ',' . rp . '/tags'
44614461
endif
44624462
call self.setvar('&includeexpr','RailsIncludeexpr()')
4463-
call self.setvar('&suffixesadd', ".rb,.".join(s:view_types,',.'))
4463+
call self.setvar('&suffixesadd', s:sub(self.getvar('&suffixesadd'),'^$','.rb'))
44644464
let ft = self.getvar('&filetype')
44654465
if ft =~# '^\%(e\=ruby\|[yh]aml\|coffee\|css\|s[ac]ss\|lesscss\)\>'
44664466
call self.setvar('&shiftwidth',2)

doc/rails.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -820,11 +820,6 @@ that this is a user preference has been ignored.
820820
*rails-'path'* *rails-'pa'*
821821
All the relevant directories from your application are added to your 'path'.
822822
This makes it easy to access a buried file: >
823-
:find blog_controller.rb
824-
<
825-
*rails-'suffixesadd'* *rails-'sua'*
826-
This is filetype dependent, but typically includes .rb, .rake, and several
827-
others. This allows shortening the above example: >
828823
:find blog_controller
829824
<
830825
*rails-'includeexpr'* *rails-'inex'*

0 commit comments

Comments
 (0)