创建:2012年12月27日
转:http://lazybirderic.wordpress.com/2010/09/11/vim-for-objective-c/
There are so many posts on this topic already, so I’ll simply make my own conclusion:1. Install cocoa.vim: unzip cocoa.zip -d ~/.vim
This include Objective-C filetype and syntax.
2. Install snipMate: unzip snipMate.zip -d ~/.vim
This include Objective-C snippets
3. Set filetype for .h and .m file
echo "au BufNewFile,BufRead *.h,*.m set filetype=objc" > ~/.vim/ftdetect/objc.vim
[自:可以在命令行指定文件类型::set ft=objc]+++++