Home > OS >  Ctags configuration
Ctags configuration

Time:10-23

Add
.vimrc
Set the nu

Set the ai

The set of tags=tags;

The set of tags +=tags;



Skilled use ctags only remember a few lives below:

1. $ctags - R * ($for Linux system Shell prompt)

2. $vi - t tag (please have replaced the tag for you to find a variable or function names)

(3) : ts ts mnemonic words: tags list, ":" the beginning of the command to the VI in command line mode command)

4. : tp (tp mnemonic words: tags preview)

5. : tn (tn mnemonic words: tags next)

6. Ctrl +] (jump to define)

7. Ctrl + T (back to before the jump)

8: ta x (jump to the definition of symbol x, if there are multiple symbols, and jump straight to the first

9. : ts x x (list symbols defined)

10. : tj x (can be regard as a merger between the two orders above, if only to find a symbol definition, you can jump straight to the symbol definition, if there are multiple, let the user choose)

Note: run vim, must be in the "tags" file directory, otherwise, run vim even when using ": set the tag=" command set "tags" file path, this vim "tags" file can be found, when complete code, can be manually delete tags file (with less than, dust won't run away),
  • Related