Skip to content

Commit 5577292

Browse files
committed
about auto formatting
1 parent 903158b commit 5577292

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ You can specify more extra options in `g:clang_format#extra_args` as String or L
7474
When this variable's value is `1`, vim-clang-format automatically detects the style file like
7575
`.clang-format` or `_clang-format` and applies the style to formatting.
7676

77+
- `g:clang_format#auto_format`
78+
79+
When the value is 1, a current buffer is automatically formatted on saving the buffer.
80+
Formatting is executed at `BufWritePre` event.
81+
7782
### Vimrc Example
7883

7984
```vim

0 commit comments

Comments
 (0)