aboutsummaryrefslogtreecommitdiff
path: root/vim/scripts.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-11 23:07:51 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-11 23:08:57 +1200
commitc4aa05314b68ea3105516e2653287725885b1d13 (patch)
tree3955df1de33df50dd1bf669ea7a513a8f8f926c4 /vim/scripts.vim
parentDon't require num suffix to Python shebang word (diff)
downloaddotfiles-c4aa05314b68ea3105516e2653287725885b1d13.tar.gz
dotfiles-c4aa05314b68ea3105516e2653287725885b1d13.zip
Add Ruby shebang
Diffstat (limited to 'vim/scripts.vim')
-rw-r--r--vim/scripts.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/vim/scripts.vim b/vim/scripts.vim
index 66bf0a8f..cbef0b4e 100644
--- a/vim/scripts.vim
+++ b/vim/scripts.vim
@@ -30,6 +30,10 @@ elseif s:line =~# '\m\<php\>'
elseif s:line =~# '\m\<python[23]\?\>'
setfiletype python
+" Ruby
+elseif s:line =~# '\m\<ruby[23]\?\>'
+ setfiletype ruby
+
" sed
elseif s:line =~# '\m\<sed\>'
setfiletype sed