Replies: 3 comments
-
how to locate c functions(e.g. for 'f' command or other that i know the binding of)? |
Beta Was this translation helpful? Give feedback.
-
Have a look at If you know that the definition is in the current scope or file tags does not do a very sophisticated search, it just prioritize speed through a binary search on the tags file. It doesn't know anything about the location that you are jumping from, just the term that you pass it. If you have the desire for it, it's not too difficult to write a slower but more accurate search that leverages your domain knowledge of the codebase you are searching. I don't know of many better methods built into vim, but vim is very friendly to the shell for whatever tools you want to leverage. To be sure, code search is difficult when many different things share the same symbol. Sometimes you need more information than just the word, or in a perfect world better conventions in the codebase you have to work in to avoid so much clashing or frequent jumping between files. Best of luck, hope it helps you even a month later :) |
Beta Was this translation helpful? Give feedback.
-
grep
cscope
ctags
grep is overhead
cscope and ctags may not work(for go to definition)
is there any other way?
Beta Was this translation helpful? Give feedback.
All reactions