Skip to content

Commit

Permalink
Include autoload in 'include'
Browse files Browse the repository at this point in the history
  • Loading branch information
tpope committed Aug 26, 2011
1 parent 91f27a8 commit b914aed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ftplugin/ruby.vim
Expand Up @@ -43,7 +43,7 @@ endif

setlocal formatoptions-=t formatoptions+=croql

setlocal include=^\\s*\\<\\(load\\\|\w*require\\)\\>
setlocal include=^\\s*\\<\\(load\\>\\\|require\\>\\\|autoload\\s*:\\=[\"']\\=\\h\\w*[\"']\\=,\\)
setlocal includeexpr=substitute(substitute(v:fname,'::','/','g'),'$','.rb','')
setlocal suffixesadd=.rb

Expand Down

0 comments on commit b914aed

Please sign in to comment.