File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,9 @@ Formatting is executed on `InsertLeave` event.
89
89
- ` g:clang_format#auto_formatexpr `
90
90
91
91
When the value is 1, ` formatexpr ` option is set by vim-clang-format automatically in C, C++ and ObjC codes.
92
- Vim's format mappings (e.g. ` gq ` ) get to use ` clang-format ` to format.
92
+ Vim's format mappings (e.g. ` gq ` ) get to use ` clang-format ` to format. This
93
+ option is not comptabile with Vim's ` textwidth ` feature. You must set
94
+ ` textwidth ` to ` 0 ` when the ` formatexpr ` is set.
93
95
94
96
### Vimrc Example
95
97
Original file line number Diff line number Diff line change @@ -189,7 +189,8 @@ g:clang_format#auto_formatexpr *g:clang_format#auto_formatexpr*
189
189
190
190
When the value is 1, 'formatexpr' option is set automatically in | c | , | cpp |
191
191
and | objc | codes. Vim's format mappings (e.g. | gq | ) get to use | clang-format |
192
- to format.
192
+ to format. This option is not comptabile with Vim's `textwidth ` feature. You
193
+ must set `textwidth ` to `0 ` when the `formatexpr ` is set.
193
194
194
195
195
196
You can’t perform that action at this time.
0 commit comments