File tree Expand file tree Collapse file tree 1 file changed +19
-7
lines changed Expand file tree Collapse file tree 1 file changed +19
-7
lines changed Original file line number Diff line number Diff line change 1
- Vim-php-cs-fixer by steph_py
2
- ============================
1
+ Vim-php-cs-fixer
2
+ ================
3
3
4
4
Integrate [ php-cs-fixer] ( https://github.com/fabpot/PHP-CS-Fixer ) created by fabpot.
5
5
6
- This plugin will execute the php-cs-fixer fix command on the directory where you launch the command.
6
+ This plugin will execute the ` php-cs-fixer ` command on the directory where you launch the command. See options to know how to customize that .
7
7
8
- Options available:
8
+ ** Options available** :
9
9
10
10
``` viml
11
11
let g:php_cs_fixer_path = ~/php-cs-fixer.phar "define the path to the php-cs-fixer.phar
12
12
let g:php_cs_fixer_level = "all" " which level ?
13
- let g:php_cs_fixer_finder = "Symfony21Finder" " Which finder ?
14
- let g:php_cs_fixer_php_path = "php" " Which php to use
15
- let g:php_cs_fixer_default_mapping = 1 " Enable the mapping by default
13
+ let g:php_cs_fixer_finder = "SymfonyFinder" " Which finder ?
14
+ let g:php_cs_fixer_php_path = "php" " Path to PHP
15
+ let g:php_cs_fixer_default_mapping = 1 " Enable the mapping by default (<leader>pcd)
16
16
let g:php_cs_fixer_dry_run = 0 " Call command with dry-run option
17
17
```
18
18
@@ -23,3 +23,15 @@ If you want to change it:
23
23
``` viml
24
24
map <leader>pcd :call PhpCsFixerFix(expand('%:p:h'))<CR>
25
25
```
26
+
27
+ # Installation
28
+
29
+ Via ** [ Vundle] ( https://github.com/gmarik/vundle ) ** , add:
30
+
31
+ ``` viml
32
+ Bundle 'stephpy/vim-php-cs-fixer'
33
+ ```
34
+
35
+ To see how to install ` php-cs-fixer ` , look at [ php-cs-fixer] ( https://github.com/fabpot/PHP-CS-Fixer ) repository.
36
+
37
+ If you see any improvement or question, contribute or create an issue
You can’t perform that action at this time.
0 commit comments