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
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,18 @@ It is more convenient to map `:ClangFormat` to your favorite key mapping in norm
20
20
21
21
If you install [vim-operator-user](https://github.com/kana/vim-operator-user) in advance, you can also map `<Plug>(operator-clang-format)` to your favorite key bind.
22
22
23
+
### What is the difference from `clang-format.py`?
24
+
25
+
`clang-format.py` is Python script to use clang-format from Vim, which is installed with clang-format.
26
+
The usage is [here](http://clang.llvm.org/docs/ClangFormat.html#vim-integration).
27
+
Against `clang-format.py`, vim-clang-format has below advantages.
28
+
29
+
- Style options are highly costomizable in `.vimrc`. `clang-format.py` requires `.clang-format` file to customize a style.
30
+
- vim-clang-format provides an operator mapping.
31
+
- vim-clang-format doesn't need python interface.
32
+
33
+
In short, vim-clang-format has better Vim integration than `clang-format.py`.
34
+
23
35
### Customization
24
36
25
37
You can customize formatting using some variables.
0 commit comments