佳为好友

转:Vim for Objective-c

创建: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
]
+++++

posted on 2012-12-27 16:55 佳为好友 阅读(659) 评论(0)  编辑 收藏 引用 所属分类: Tool


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理


导航

<2024年4月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

留言簿(1)

随笔分类

搜索

最新评论

评论排行榜