PracticalVim Tip102 - yszheda/wiki GitHub Wiki

Table of Contents

Tip 102: Configure Vim to Work with ctags

Return to the top: <>

Tell Vim Where to Find the tags File

  • The 'tags' option specifies where Vim should look to find a tags file.

References:

  • inspect the default settings:
  • Under certain conditions, if a match is found in the first tags file, Vim won’t even look in the second file.

References:

Generate the tags File

Simple Case: Execute catgs Manually

  • create a mapping:

Automatically Execute ctags Each Time a File is Saved

Automatically Execute ctags with Version Control Hooks

Effortless Ctags with Git

⚠️ **GitHub.com Fallback** ⚠️