Skip to content

Commit 61ede80

Browse files
committed
oops, forget adding document
1 parent ce19536 commit 61ede80

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

doc/clang-format.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,17 @@ g:clang_format#auto_format *g:clang_format#auto_format*
156156
buffer on saving the buffer. Formatting is executed at |BufWritePre| event.
157157
The default value is 0.
158158

159+
g:clang_format#auto_format_on_insert_leave
160+
*g:clang_format#auto_format_on_insert_leave*
161+
162+
When the value is 1, the inserted lines are automatically formatted on
163+
leaving insert mode. Formatting is executed on |InsertLeave| event.
164+
165+
Below link is a screenshot of an example for this feature. Inserted 'if'
166+
statement is automatically formated on leaving insert mode.
167+
168+
http://gifzo.net/CPrVbHnKMe.gif
169+
159170
==============================================================================
160171
SETUP EXAMPLE *vim-clang-format-setup-example*
161172

0 commit comments

Comments
 (0)