1

I have set up ctags to generate a tags file for my code base. I can now jump to definitions of functions by running :tag FUNCTIONNAME or by pressing ctrl-] when my cursor is on the invocation of a function call.

I would like to open Vim or Neovim from the command-line so that it opens the file and navigates to the line number where a function resides, like this:

vim --open-tag FUNCTIONNAME

How do I do that?

0

1 Answer 1

3

Good news! This is easy to do. Just use the -t command-line option:

vim -t TAGNAME
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.