Skip to content

Instantly share code, notes, and snippets.

@bgerstle
Created February 9, 2014 20:21
Show Gist options
  • Save bgerstle/8905402 to your computer and use it in GitHub Desktop.
Save bgerstle/8905402 to your computer and use it in GitHub Desktop.
Automatic ruby syntax & filetype detection for Cocoapods files in vim
" 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