Skip to content

Commit e9117b3

Browse files
committed
about clang-format.py
1 parent aa1dbdd commit e9117b3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,18 @@ It is more convenient to map `:ClangFormat` to your favorite key mapping in norm
2020

2121
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.
2222

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+
2335
### Customization
2436

2537
You can customize formatting using some variables.

0 commit comments

Comments
 (0)