[cfe-dev] Fwd: vim and clang-format integration issue

Nitin nitin.hp.coep at gmail.com
Tue Jul 14 12:17:21 PDT 2015


Hi Daniel
You were totally correct. I added python support. It is working fine now

Thanks
Nitin

On Tue, Jul 14, 2015 at 5:35 PM, Daniel Jasper <djasper at google.com> wrote:

> I have not seen that particular error before, but it sounds like your vim
> might be compiled without python support?
>
> On Tue, Jul 14, 2015 at 1:15 PM, Nitin <nitin.hp.coep at gmail.com> wrote:
>
>> I am trying to setup my vim with clang-format, on centos 6.5 using
>> http://clang.llvm.org/docs/ClangFormat.html
>> <https://urldefense.proofpoint.com/v2/url?u=http-3A__clang.llvm.org_docs_ClangFormat.html&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=CnzuN65ENJ1H9py9XLiRvC_UQz6u3oG6GUNn7_wosSM&m=7EnBF0mlAyzfLdQJg-r_pddV0GKnMRMG6iJTRfmnRTs&s=Zg7l6KL7HGzFmQodRHxjV981HZf2fH-4pyusfEECAUs&e=>
>>
>> Here are the steps and configs
>> 1. Yum install clang
>> 2. copied clang-format.py to my home dir /home/nitin
>> 3.  I have .vimrc in my home directory. added following lines:
>>      map <C-K> :pyf /home/nitin/clang-format.py<cr>
>>      imap <C-K> <c-o>:pyf /home/nitin/clang-format.py<cr>
>> 4. When i open source file in vim and try to Ctrl+k, vim says command is
>> not available in this version
>>
>> Can somebody help me here?
>>
>> Thanks
>> Nitin
>>
>>
>>
>> _______________________________________________
>> 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/20150715/34f249f9/attachment.html>


More information about the cfe-dev mailing list