Permalink
Browse files

Update document Vim automatic formatting on save

that `standard % --format` was move to `standard-format` but document about Vim automatic formatting on save not updated.
  • Loading branch information...
ibotdotout committed Mar 3, 2016
1 parent 6d3d200 commit 08c8d6fdaf0352b42a5c0ee57cef3b08bedf0acb
Showing with 8 additions and 2 deletions.
  1. +8 −2 README.md
View
@@ -138,10 +138,16 @@ Install **[Syntastic][vim-1]** and add this line to `.vimrc`:
let g:syntastic_javascript_checkers = ['standard']
```
-For automatic formatting on save, add these two lines to `.vimrc`:
+For automatic formatting on save, install [standard-format](https://github.com/maxogden/standard-format)
+
+```bash
+npm install -g standard-format
+```
+
+and add these two lines to `.vimrc`:
```vim
-autocmd bufwritepost *.js silent !standard % --format
+autocmd bufwritepost *.js silent !standard-format -w %
set autoread
```

0 comments on commit 08c8d6f

Please sign in to comment.