11# Goal
22
3- vim-php-namespace is a vim script for inserting "use" statements automatically.
3+ vim-php-namespace is a vim plugin for inserting "use" statements automatically.
44
55## Features
66
7979ctags doesn ' t indexes [traits](http://php.net/traits) by default, you have to add a `--regex-php` option to index them:
8080
8181 ctags -R --PHP-kinds=+cf --regex-php=/^[ \t]*trait[ \t]+([a-z0_9_]+)/1円/t,traits/i
82+
83+ Alternatively, create a `~/.ctags` file with the following contents:
84+
85+ --regex-php=/^[ \t]*trait[ \t]+([a-z0_9_]+)/1円/t,traits/i
8286
8387#### Automatically updating tags
8488
@@ -88,7 +92,7 @@ To keep updates fast, AutoTags won't operate if the tags file exceeds 7MB. To av
8892
8993 # dependencies tags file (index only the vendor directory, and save tags in . /tags.vendors)
9094 ctags -R --PHP-kinds =+cf -f tags.vendors vendor
91- 95+
9296 # project tags file (index only src, and save tags in . /tags; AutoTags will update this one)
9397 ctags -R --PHP-kinds =+cf src
9498
0 commit comments