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?


1 Answer 1


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

vim -t TAGNAME

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.