]> git.madduck.net Git - etc/vim.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Suggest BufWritePre instead of BufWritePost for vi (#376)
authorDavid Szotten <davidszotten@gmail.com>
Sat, 23 Jun 2018 07:56:05 +0000 (08:56 +0100)
committerŁukasz Langa <lukasz@langa.pl>
Sat, 23 Jun 2018 07:56:05 +0000 (00:56 -0700)
closes #321

README.md

index 96d169a2118d3ad237e60b6fe51713331dafbfb7..c45348dd01f440474fccb92ab3e4fbd10efc26fd 100644 (file)
--- a/README.md
+++ b/README.md
@@ -670,7 +670,7 @@ The plugin will use it.
 To run *Black* on save, add the following line to `.vimrc` or `init.vim`:
 
 ```
 To run *Black* on save, add the following line to `.vimrc` or `init.vim`:
 
 ```
-autocmd BufWritePost *.py execute ':Black'
+autocmd BufWritePre *.py execute ':Black'
 ```
 
 **How to get Vim with Python 3.6?**
 ```
 
 **How to get Vim with Python 3.6?**