简体   繁体   English

objective-c标签文件为vim

[英]objective-c tags file for vim

I'd like to use Vim for editing sources and Xcode for all other purposes like managing, debugging etc. I've installed cocoa.vim plugin and it helps with highlighting, but I still need a way to navigate around the code. 我想使用Vim编辑源代码和Xcode用于管理,调试等所有其他目的。我已经安装了cocoa.vim插件,它有助于突出显示,但我仍然需要一种方法来浏览代码。 In java project I used ctags for the purpose, but it doesn't support obj-c. 在java项目中,我使用ctags作为目的,但它不支持obj-c。

So the question is: what is the easiest way to generate vi-compatible tags file for Objective-C sources? 所以问题是:为Objective-C源生成vi兼容标签文件的最简单方法是什么?

I'm the author of the second link that jelera pointed to and must say it is now out of date. 我是jelera指出的第二个链接的作者,必须说它现在已经过时了。

I would follow the advice in the accepted answer of Alternatives to Ctags/Cscope with Objective-c? 我会按照Objective-c中Ctags / Cscope替代品的公认答案中的建议吗? in order to get full Obj-C parser support in ctags. 为了在ctags中获得完整的Obj-C解析器支持。

If you use tagbar, this post will help get the new ctags binary working with it: 如果您使用tagbar,这篇文章将帮助获得新的ctags二进制文件:

http://bastibe.de/2011-12-04-how-to-make-tagbar-work-with-objective-c.html http://bastibe.de/2011-12-04-how-to-make-tagbar-work-with-objective-c.html

This is pretty much the setup I now use. 这几乎就是我现在使用的设置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM