Exuberant Ctags on Mac

后端 未结 3 618
旧巷少年郎
旧巷少年郎 2021-02-04 23:50

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.

I used the fo

相关标签:
3条回答
  • 2021-02-05 00:32

    Install MacPorts, then do:

    port install ctags
    
    0 讨论(0)
  • 2021-02-05 00:38

    Install Homebrew, then do:

    brew install ctags
    
    0 讨论(0)
  • 2021-02-05 00:50

    For a more friendly way to do this instead of using mac-ports or homebrew and running the risk of causing errors download ctags from here and compile with xcode (starting with version 4.3 command line tools are not installed by default but rather through Preferences -> Downloads) then simply move the compiled ctags to /usr/bin/ctags-exuberant to preserve the original.

    Commands Used:

    Change Directory to Downloads and ctags directory:

    $cd
    $cd Down<tab>ctags<tab>

    Configure:

    $./configure

    Make:

    $make

    Move to /usr/bin:

    $sudo mv ctags /usr/bin/ctags-exuberant
    



    NOTE: <tab> is equal to pressing the tab key.
    NOTE: XCode can now be downloaded from the Apple App Store!

    Very useful for getting Tagbar for vim to work! Tagbar is available here.

    0 讨论(0)
提交回复
热议问题