@@ -20,7 +20,16 @@ License |vim-clang-format-license|
20
20
INTRODUCTION *vim-clang-format-introduction*
21
21
22
22
*vim-clang-format* formats your C, C++ and Objective-C code with specific coding
23
- style using clang.
23
+ style using clang. Following filetypes are supported.
24
+
25
+ * c
26
+ * cpp
27
+ * objc
28
+ * javascript
29
+ * java
30
+ * typescript
31
+ * proto
32
+ * arduino
24
33
25
34
Screenshot:
26
35
http://gifzo.net/BIteGJ9Vasg.gif
@@ -183,15 +192,20 @@ g:clang_format#auto_format_on_insert_leave
183
192
When the value is 1, the inserted lines are automatically formatted on
184
193
leaving insert mode. Formatting is executed on | InsertLeave | event.
185
194
186
-
187
-
188
195
g:clang_format#auto_formatexpr *g:clang_format#auto_formatexpr*
189
196
190
197
When the value is 1, 'formatexpr' option is set automatically in | c | , | cpp |
191
198
and | objc | codes. Vim's format mappings (e.g. | gq | ) get to use | clang-format |
192
199
to format. This option is not comptabile with Vim's `textwidth ` feature. You
193
200
must set `textwidth ` to `0 ` when the `formatexpr ` is set.
194
201
202
+ g:clang_format#enable_fallback_style *g:clang_format#enable_fallback_style*
203
+
204
+ When the value is 0, "-fallback-style=none" option is added on executing
205
+ clang-format command. It means that vim-clang-format does nothing when
206
+ ".clang-format" is not found.
207
+ The default value is 1.
208
+
195
209
196
210
197
211
==============================================================================
@@ -233,7 +247,7 @@ LICENSE *vim-clang-format-license*
233
247
234
248
| vim-clang-format | is distributed under MIT license.
235
249
236
- Copyright (c) 2013-2014 rhysd
250
+ Copyright (c) 2013-2017 rhysd
237
251
238
252
Permission is hereby granted, free of charge, to any person obtaining
239
253
a copy of this software and associated documentation files (the
@@ -254,5 +268,6 @@ LICENSE *vim-clang-format-license*
254
268
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
255
269
256
270
271
+
257
272
==============================================================================
258
273
vim:tw=78:colorcolumn=78:ts=8:ft=help:norl:noet:fen:fdl=0:
0 commit comments