Merge branch 'master' of https://github.com/Chiel92/vim-autoformat
This commit is contained in:
commit
56170ff0d3
13
README.md
13
README.md
@ -1,9 +1,10 @@
|
|||||||
# vim-autoformat
|
# vim-autoformat
|
||||||
|
|
||||||
Format code with one button press!
|
Format code with one button press.
|
||||||
This plugin makes use of external formatprograms to achieve the best results.
|
|
||||||
Check the list of formatprograms to see which languages are supported by default.
|
This plugin makes use of external formatting programs to achieve the best results.
|
||||||
You can easily customize or add your own formatprogram.
|
Check the list of formatprograms below to see which languages are supported by default.
|
||||||
|
You can easily customize these or add your own formatprogram.
|
||||||
When no formatprogram exists (or no formatprogram is installed) for a certain filetype,
|
When no formatprogram exists (or no formatprogram is installed) for a certain filetype,
|
||||||
vim-autoformat falls back by default to indenting, (using vim's auto indent functionality), retabbing and removing trailing whitespace.
|
vim-autoformat falls back by default to indenting, (using vim's auto indent functionality), retabbing and removing trailing whitespace.
|
||||||
|
|
||||||
@ -133,7 +134,7 @@ Here is a list of formatprograms that are supported by default, and thus will be
|
|||||||
And here the link to its page on the python website: http://pypi.python.org/pypi/autopep8/0.5.2.
|
And here the link to its page on the python website: http://pypi.python.org/pypi/autopep8/0.5.2.
|
||||||
|
|
||||||
* `yapf` for __Python__ (supports formatting ranges).
|
* `yapf` for __Python__ (supports formatting ranges).
|
||||||
It is readily available through PIP. Most users can install with the terminal command `sudo pip install yapf` or `pip --user install yapf`.
|
It is readily available through PIP. Most users can install with the terminal command `sudo pip install yapf` or `pip install --user yapf`.
|
||||||
YAPF has one optional configuration variable to control the formatter style.
|
YAPF has one optional configuration variable to control the formatter style.
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
@ -217,7 +218,7 @@ Here is a list of formatprograms that are supported by default, and thus will be
|
|||||||
* `fprettify` for modern __Fortran__.
|
* `fprettify` for modern __Fortran__.
|
||||||
Download from [official repository](https://github.com/pseewald/fprettify). Install with `./setup.py install` or `./setup.py install --user`.
|
Download from [official repository](https://github.com/pseewald/fprettify). Install with `./setup.py install` or `./setup.py install --user`.
|
||||||
|
|
||||||
## Debugging
|
## It doesn't work!
|
||||||
|
|
||||||
If you're struggling with getting a formatter to work, it may help to set vim-autoformat in
|
If you're struggling with getting a formatter to work, it may help to set vim-autoformat in
|
||||||
verbose-mode. Vim-autoformat will then output errors on formatters that failed.
|
verbose-mode. Vim-autoformat will then output errors on formatters that failed.
|
||||||
|
Loading…
Reference in New Issue
Block a user