[cfe-dev] Slightly improved clang-format vim integration

Sean Silva silvas at purdue.edu
Sun Sep 15 16:51:21 PDT 2013


Could you maybe describe what's different, and why?

-- Sean Silva


On Sun, Sep 15, 2013 at 7:20 AM, Steffen Prohaska <prohaska at zib.de> wrote:

> Hello,
>
> I've attached a slightly modified clang-format.py for vim integration.
>  Feel free to commit it to the official svn in case you like it.  I'd
> suggest the following commit message:
>
> '''
> clang-format: Use a Python module in vim with config via 'g:' globals
>
> clang-format.py is changed to a Python module (therefore renamed to
> 'clang_format.py'), which is imported once into vim and then directly
> called from vim mappings.  Configuration now works via global vim
> variables 'g:clang_format_binary' and 'g:clang_format_style'.  Using
> global variables is more flexible than hard-coded values in the Python
> script.  For example, the style can be changed on-the-fly in 'autocmd
> FileType'.
> '''
>
> Best,
>   Steffen Prohaska
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130915/9ae86b76/attachment.html>


More information about the cfe-dev mailing list