11# vim-php
2- Plugin to help PHP developers, inspired on Sublime Text's plugin PHP Companion.
3-
4- When two or more classes are found, it won't display that ugly tags list like ` :ts ` , instead it will display
5- a nice and clean options list, just give it a try!
2+ An ** intuitive** plugin to import/expand classes, traits and interfaces, finally!
63
74![ Preview] ( https://sahib.io/vim-php-namespace.gif )
85
96## Install
10- Install using your favorite plugin manager.
7+ Install using your favorite plugin manager, like Vundle:
8+ ``` vim
9+ Plugin 'sahibalejandro/vim-php'
10+ ```
1111
1212## CTags
13- You need * Universal Ctags* to generate CTags for classes, traits and interfaces.
13+ You need ** Universal Ctags* * to generate CTags for classes, traits and interfaces.
1414Here you can find it: https://github.com/universal-ctags/ctags
1515
16- Once you have installed * Universal Ctags* just run this command:
16+ Once you have installed ** Universal Ctags* * just run this command:
1717```
1818ctags --recurse --languages=php --php-kinds=ctif
1919```
@@ -24,13 +24,13 @@ You need at least the following kinds: `cti`, which corresponds to `class`,
2424## Commands
2525
2626### PHPImportClass
27- This command will add the ` use Foo\Bar ` statement for the class under cursor.
27+ This command will add the ` use Foo\Bar ` statement for the class/trait/interface under cursor.
2828
2929### PHPExpandFQCN
30- This command will expand the FQCN for the class under cursor.
30+ This command will expand the FQCN for the class/trait/interface under cursor.
3131
3232### PHPExpandFQCNAbsolute
33- This command will expand the FQCN with a leading backslash for the class under
33+ This command will expand the FQCN with a leading backslash for the class/trait/interface under
3434cursor.
3535
3636## Configuration
0 commit comments