Author: Kyle Fuller <inbox@kylefuller.co.uk> 2014-02-10 17:07:41 +0000 +0000
Committer: Kyle Fuller <inbox@kylefuller.co.uk> 2014-02-10 18:16:22 +0000 +0000
Commit: 94e2bba133253bb69d02e62f302d0c511fc8cec5
Parent: 6a8dd2bddcfc8eff217ff4c71b26917c3f1f9d32
Vim: Set pod spec and pod file types
diff --git a/.vimrc b/.vimrc
index 3f917df72f4a8951a1ef618f654abd85f2ecf5d0..534c1c550caec3706041b4f2fba7059a16c96025 100644
--- a/.vimrc
+++ b/.vimrc
@@ -63,6 +63,17 @@ set expandtab " Expand tabs into spaces
autocmd FileType cpp set noexpandtab
set showbreak=↪
+" Podspecs ------ {{{
+augroup ft_podspec
+ autocmd!
+ autocmd BufNewFile,BufRead,BufWrite *.podspec setlocal filetype=podspec
+ autocmd BufNewFile,BufRead Podfile setlocal filetype=podfile
+ autocmd FileType podspec,podfile set syntax=ruby
+ autocmd FileType podspec set makeprg=pod\ spec\ lint\ %
+ autocmd FileType podfile set makeprg=pod\ install
+augroup END
+" }}}
+
nmap <leader>l :set list!<CR>
set listchars=tab:▸\ ,trail:▝,eol:¬
set list