mirror of https://github.com/bjeanes/dotfiles.git
Some extra ruby filetypes and beginnings of conceals
parent
937df23485
commit
1c5bc75ed7
|
@ -0,0 +1,11 @@
|
||||||
|
if !has('conceal')
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
|
||||||
|
syntax keyword rubyControl not conceal cchar=¬
|
||||||
|
syntax keyword rubyKeyword lambda conceal cchar=λ
|
||||||
|
syntax match rubyGreaterThanOrEqual ">=" conceal cchar=≥
|
||||||
|
syntax match rubyLessThanOrEqual "<=" conceal cchar=≤
|
||||||
|
|
||||||
|
set conceallevel=2
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
" Ruby
|
||||||
|
au BufNewFile,BufRead *.rb,*.rbw,*.gem,*.gemspec set filetype=ruby
|
||||||
|
|
||||||
|
" Ruby on Rails
|
||||||
|
au BufNewFile,BufRead *.builder,*.rxml,*.rjs set filetype=ruby
|
||||||
|
|
||||||
|
" Rakefile
|
||||||
|
au BufNewFile,BufRead [rR]akefile,*.rake set filetype=ruby
|
||||||
|
|
||||||
|
" Rantfile
|
||||||
|
au BufNewFile,BufRead [rR]antfile,*.rant set filetype=ruby
|
||||||
|
|
||||||
|
" IRB config
|
||||||
|
au BufNewFile,BufRead .irbrc,irbrc set filetype=ruby
|
||||||
|
|
||||||
|
" eRuby
|
||||||
|
au BufNewFile,BufRead *.erb,*.rhtml set filetype=eruby
|
||||||
|
|
||||||
|
" Thorfile
|
||||||
|
au BufNewFile,BufRead [tT]horfile,*.thor set filetype=ruby
|
||||||
|
|
||||||
|
" Gemfile
|
||||||
|
au BufNewFile,BufRead Gemfile set filetype=ruby
|
Loading…
Reference in New Issue