Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update abbreviations to use Ruby 1.9 hash syntax #136

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions autoload/rails.vim
Original file line number Diff line number Diff line change
Expand Up @@ -4021,24 +4021,24 @@ function! s:BufAbbreviations()
Rabbrev coo[ cookies
Rabbrev fl[ flash
Rabbrev rr( render
Rabbrev ra( render :action\ =>\
Rabbrev rc( render :controller\ =>\
Rabbrev rf( render :file\ =>\
Rabbrev ri( render :inline\ =>\
Rabbrev rj( render :json\ =>\
Rabbrev rl( render :layout\ =>\
Rabbrev rp( render :partial\ =>\
Rabbrev rt( render :text\ =>\
Rabbrev rx( render :xml\ =>\
Rabbrev ra( render action:\
Rabbrev rc( render controller:\
Rabbrev rf( render file:\
Rabbrev ri( render inline:\
Rabbrev rj( render json:\
Rabbrev rl( render layout:\
Rabbrev rp( render partial:\
Rabbrev rt( render text:\
Rabbrev rx( render xml:\
endif
if buffer.type_name('view','helper')
Rabbrev dotiw distance_of_time_in_words
Rabbrev taiw time_ago_in_words
endif
if buffer.type_name('controller')
Rabbrev re( redirect_to
Rabbrev rea( redirect_to :action\ =>\
Rabbrev rec( redirect_to :controller\ =>\
Rabbrev rea( redirect_to action:\
Rabbrev rec( redirect_to controller:\
Rabbrev rst( respond_to
endif
if buffer.type_name() ==# 'model' || buffer.type_name('model-arb')
Expand Down Expand Up @@ -4076,13 +4076,13 @@ function! s:BufAbbreviations()
Rabbrev asre( assert_response
Rabbrev art( assert_redirected_to
endif
Rabbrev :a :action\ =>\
Rabbrev :a action:\
" hax
Rabbrev :c :co________\ =>\
Rabbrev :c co________:\
inoreabbrev <buffer> <silent> :c <C-R>=<SID>TheCWord()<CR>
Rabbrev :i :id\ =>\
Rabbrev :o :object\ =>\
Rabbrev :p :partial\ =>\
Rabbrev :i id:\
Rabbrev :o object:\
Rabbrev :p partial:\
Rabbrev logd( logger.debug
Rabbrev logi( logger.info
Rabbrev logw( logger.warn
Expand Down