-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
33 lines (21 loc) · 1.11 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
This is a mirror of http://www.vim.org/scripts/script.php?script_id=1873
Usage:
Set your projects path into g:ProjTags as a list, for example:
let g:ProjTags = [ "~/work/proj1" ]
In this case for all file match the pattern "~/work/proj1/*", the tag file
"~/work/proj1/tags" will be used.
You can also specify a tags file other than the default one or more tags
files for one directory by a list:
let g:ProjTags += [[ "~/work/proj2", "~/work/proj2/tags",
"~/work/common.tags" ]]
In this case for all files match the pattern "~/work/proj2/*", the tag files
"~/work/proj2/tags" and "~/work/common.tags" will be used.
If one of the items in the list begins with ":", it will be treated as a
command (other than tag file):
let g:ProjTags += [[ "~/work/proj3", "~/work/proj3/tags",
":set shiftwidth=4" ]]
In this case for all files match the pattern "~/work/proj3/*", the tag file
"~/work/proj3/tags" will be used, and "shiftwidth=4" will be set.
Please note that if you use "set" in the command, we will actually use
"setlocal" instead, to avoid polluting the whole vim environment.
You can add the above codes into your vimrc file