On 2019-02-26, Peng Yu wrote:
> For example, I'd like to use clang-format to indent only .c and .cpp
> files. Is there a way to config vim to do so? Thanks.
Short answer:
:help =
:help 'equalprg'
Set 'equalprg' using setlocal in your ~/.vim/after/ftplugin/c.vim
and/or ~/.vim/after/ftplugin/cpp.vim file.
HTH,
Gary
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Tuesday, February 26, 2019
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment