UNIX Power Tools

UNIX Power ToolsSearch this book
Previous: 30.28 Keep Track of Functions and Included Files with ctags and tagsChapter 30
vi Tips and Tricks
Next: 30.30 vi Outsmarts Dual-Function Function Keys
 

30.29 Setting Multiple tags Files

You might have a tags file in your current directory. You might also have another system-wide or group-wide tags file. How can you make vi search both of them?

In your .exrc file (30.6) or at the colon (:) prompt, type a backslash (\) between the tag filenames:

set tags=tags\ /usr/local/lib/tags

- JP


Previous: 30.28 Keep Track of Functions and Included Files with ctags and tagsUNIX Power ToolsNext: 30.30 vi Outsmarts Dual-Function Function Keys
30.28 Keep Track of Functions and Included Files with ctags and tagsBook Index30.30 vi Outsmarts Dual-Function Function Keys

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System