You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-13Lines changed: 22 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,26 @@
1
-
## Format your C, C++ and Objective-C code [](https://travis-ci.org/rhysd/vim-clang-format)
-[vimproc.vim](https://github.com/Shougo/vimproc.vim)(recommended in Windows)
14
22
15
-
###Usage
23
+
## Usage
16
24
17
25
`:ClangFormat` command is available.
18
26
If you use it in normal mode, the whole code will be formatted. If you use it in visual mode, the selected code will be formatted.
@@ -23,7 +31,7 @@ If you install [vim-operator-user](https://github.com/kana/vim-operator-user) in
23
31
`:ClangFormatAutoToggle` command toggles the auto formatting on buffer write.
24
32
`:ClangFormatAutoEnable` command enables the auto formatting on buffer write. Useful for automatically enabling the auto format through a vimrc. `:ClangFormatAutoDisable` turns it off.
25
33
26
-
###What is the difference from `clang-format.py`?
34
+
## What is the difference from `clang-format.py`?
27
35
28
36
`clang-format.py` is Python script to use clang-format from Vim, which is installed with clang-format.
29
37
The usage is [here](http://clang.llvm.org/docs/ClangFormat.html#vim-integration).
@@ -35,7 +43,7 @@ Against `clang-format.py`, vim-clang-format has below advantages.
35
43
36
44
In short, vim-clang-format has better Vim integration than `clang-format.py`.
37
45
38
-
###Customization
46
+
## Customization
39
47
40
48
You can customize formatting using some variables.
41
49
@@ -94,7 +102,7 @@ Vim's format mappings (e.g. `gq`) get to use `clang-format` to format. This
94
102
option is not comptabile with Vim's `textwidth` feature. You must set
0 commit comments