vimctags

How to run ctags on vim start?


I am running in my vim :let Tlist_Ctags_Cmd='"/opt/homebrew/bin/ctags"' so that ctags can work properly. Is there a way to configure vim to run it automatically so I don't have to do each time I launch vim?


Solution

  • Simply add

    let Tlist_Ctags_Cmd='"/opt/homebrew/bin/ctags"'
    

    to your ~/.vimrc.