From 22e39f99a4beecb942225b734fbac46ad5c5487d Mon Sep 17 00:00:00 2001 From: Giulio Ungaretti Date: Fri, 20 Jan 2017 15:06:49 +0100 Subject: [PATCH 1/3] fix: Use correct pip command to install yapf --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b2f9229..a9e58a8 100644 --- a/README.md +++ b/README.md @@ -133,7 +133,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. * `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. For example: From 0923017c636de98af60f2d88f53c0272aa7ce02d Mon Sep 17 00:00:00 2001 From: Chiel ten Brinke Date: Tue, 24 Jan 2017 16:40:40 +0100 Subject: [PATCH 2/3] Update README.md --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a9e58a8..ae9b8ad 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,10 @@ # vim-autoformat -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. -You can easily customize or add your own formatprogram. +Format code with one button press. + +This plugin makes use of external formatting programs to achieve the best results. +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, vim-autoformat falls back by default to indenting, (using vim's auto indent functionality), retabbing and removing trailing whitespace. From 92e95779c2df4305075fc0e51f010f2132c8c304 Mon Sep 17 00:00:00 2001 From: Chiel ten Brinke Date: Thu, 2 Feb 2017 09:48:25 +0100 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ae9b8ad..c039982 100644 --- a/README.md +++ b/README.md @@ -218,7 +218,7 @@ Here is a list of formatprograms that are supported by default, and thus will be * `fprettify` for modern __Fortran__. 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 verbose-mode. Vim-autoformat will then output errors on formatters that failed.