File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,17 @@ g:clang_format#auto_format *g:clang_format#auto_format*
156
156
buffer on saving the buffer. Formatting is executed at | BufWritePre | event.
157
157
The default value is 0.
158
158
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
+
159
170
==============================================================================
160
171
SETUP EXAMPLE *vim-clang-format-setup-example*
161
172
You can’t perform that action at this time.
0 commit comments