vim_ctags
MAC vim ctags with ObjC
- An ObjectiveC parser has been added to Exuberant CTags trunk
- You can easily install it on OSX via homebrew
- brew install ctags —HEAD
- Note that when using ctags, beware that .h will be treated as C++, look at man ctags for using ctags -R —language-force=ObjectiveC or —langmap, unless many tags will be missing.
- Then I added something like this to my .vimrc for taglist support:
let tlist_objc_settings = 'ObjectiveC;P:protocols;i:interfaces;types(…)'
add any type interests you from that list:
$ ctags --list-kinds=all
ObjectiveC
i class interface
I class implementation
p Protocol
m Object's method
c Class' method
v Global variable
F Object field
f A function
p A property
t A type alias
s A type structure
e An enumeration
M A preprocessor macro
Reference
page revision: 6, last edited: 12 May 2012 05:50