Skip to content

Commit 20be143

Browse files
authored
Merge pull request stephpy#38 from joereynolds/master
add help for mappings
2 parents aa4bbd6 + 69b451c commit 20be143

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

doc/vim-php-cs-fixer.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,32 @@
11
*vim-php-cs-fixer*
22

33
License |vim-php-cs-fixer-license|
4+
Mappings |vim-php-cs-fixer-mappings|
45

56
Integrate PHP CS Fixer (https://github.com/FriendsOfPHP/PHP-CS-Fixer).
67

78
This plugin will execute the php-cs-fixer command
89
on the directory or file (depends on which command you call).
910

1011
==============================================================================
12+
MAPPINGS *vim-php-cs-fixer-mappings*
13+
14+
<leader>pcd Calls php-cs-fixer on the current directory of
15+
the file.
16+
17+
<leader>pcf Calls php-cs-fixer on the current file.
18+
19+
20+
To change default mappings, there are two commands available to you.
21+
`PhpCsFixerFixDirectory()`
22+
`PhpCsFixerFixFile()`
23+
24+
A possible remapping could be
25+
`nnoremap <silent><leader>d :call PhpCsFixerFixDirectory()<CR>`
26+
`nnoremap <silent><leader>f :call PhpCsFixerFixFile()<CR>`
27+
28+
==============================================================================
29+
1130
LICENSE *vim-php-cs-fixer-license*
1231

1332
Copyright 2017 by Stéphane PY

0 commit comments

Comments
 (0)