Mac上的旺盛Ctags [英] Exuberant Ctags on Mac

查看:184
本文介绍了Mac上的旺盛Ctags的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用vim进行PHP开发.几周前,我给自己买了一台Mac,想重新生成新的Zend Framework版本的标签.

I'm currently using vim for my PHP development. A few weeks ago I bought myself a mac, and wanted to re-generate my tags for a new Zend Framework version.

过去,我使用以下脚本(Linux机器)来生成标签:

I used the following script in the past (linux machine) to generate the tags:

#!/bin/bash
cd ~/www/ZF/     
ctags-exuberant -f ~/.vim/tags/zend \
-h ".php" -R \
--exclude="\.svn" \
--totals=yes \
--tag-relative=yes \
--PHP-kinds=+cf \
--regex-PHP='/abstract class ([^ ]*)/\1/c/' \
--regex-PHP='/interface ([^ ]*)/\1/c/' \
--regex-PHP='/(public |static |abstract |protected |private )+function ([^ (]*)/\2/f/'

您可以看到我使用了"ctags-exuberant"命令.问题是在我的系统(mac)上找不到此文件.我只有ctags命令.我尝试安装最新版本的ctags库(http://ctags.sourceforge.net/),但没有给我该命令.

You can see I used the "ctags-exuberant" command. The problem is that this isn't found on my system (mac). I only have the ctags command. I tried installing the newest version of the ctags library (http://ctags.sourceforge.net/) but didn't gave me that command.

ctags命令的参数与ctags-exuberant的参数不同.所以有两个问题:

The ctags command does not have the same parameters as the ctags-exuberant. So 2 questions:

  • 这两个命令有什么区别?
  • 如何为PHP安装ctags-exuberant或正常的ctags命令?

谢谢! 病房

推荐答案

安装 MacPorts ,然后执行以下操作:

Install MacPorts, then do:

port install ctags

这篇关于Mac上的旺盛Ctags的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆