How to create ctags file for docset? (For vim)

I would like to use ctags to view docs of Apple iphone sdk files using vim. Is there a way to create a ctags file that references the relevant documents?

I use Objective-C for programming for the iPhone, so I ended up using Objective-C Ctags and changed my command line as follows:

ctags -f iPhone.tags -R --langmap="ObjC:.m .h" --fields=+ias --extra=+q /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/System/Library/Frameworks/

In addition, the + and - methods fall into the tags, and since you are not using them in the code, I had to cut them from the created tag file.

+3
source share
1 answer

I use several system sdk and create a tag file for each of them, for example:

%> ctags -f qt4.tags -R --c++-kinds=+p --fields=+iaS --extra=+q --language-force=C++ /Library/Frameworks/Qt*

"" vim. .vimrc:

let &tags="tags;./tags"
let s:tfs=split(globpath(&rtp, "tags/*.tags"),"\n")
for s:tf in s:tfs
   let &tags.=",".expand(escape(escape(s:tf, " "), " "))
endfor

.. thats it.

exuberant ctags , Windows , mac macports, linux :)

+1

Source: https://habr.com/ru/post/1718057/


All Articles