Permalink
Browse files

add help for mappings

  • Loading branch information...
Joe Reynolds
Joe Reynolds committed Oct 10, 2017
1 parent aa4bbd6 commit 69b451c1b85e613d5943936ba4f01ae5a5183e6e
Showing with 19 additions and 0 deletions.
  1. +19 −0 doc/vim-php-cs-fixer.txt
View
@@ -1,13 +1,32 @@
*vim-php-cs-fixer*
License |vim-php-cs-fixer-license|
Mappings |vim-php-cs-fixer-mappings|
Integrate PHP CS Fixer (https://github.com/FriendsOfPHP/PHP-CS-Fixer).
This plugin will execute the php-cs-fixer command
on the directory or file (depends on which command you call).
==============================================================================
MAPPINGS *vim-php-cs-fixer-mappings*
<leader>pcd Calls php-cs-fixer on the current directory of
the file.
<leader>pcf Calls php-cs-fixer on the current file.
To change default mappings, there are two commands available to you.
`PhpCsFixerFixDirectory()`
`PhpCsFixerFixFile()`
A possible remapping could be
`nnoremap <silent><leader>d :call PhpCsFixerFixDirectory()<CR>`
`nnoremap <silent><leader>f :call PhpCsFixerFixFile()<CR>`
==============================================================================
LICENSE *vim-php-cs-fixer-license*
Copyright 2017 by Stéphane PY

0 comments on commit 69b451c

Please sign in to comment.