Created
February 9, 2014 20:21
-
-
Save bgerstle/8905402 to your computer and use it in GitHub Desktop.
Automatic ruby syntax & filetype detection for Cocoapods files in vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Automatic commands | |
if has("autocmd") | |
" Enable file type detection | |
filetype on | |
" Recognize the following as Ruby files | |
autocmd BufNewFile,BufRead *.podspec set filetype=ruby syntax=ruby | |
autocmd BufNewFile,BufRead Podfile set filetype=ruby syntax=ruby | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment