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

Nitin nitin.hp.coep at gmail.com
Tue Jul 14 04:15:57 PDT 2015


I am trying to setup my vim with clang-format, on centos 6.5 using
http://clang.llvm.org/docs/ClangFormat.html

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150714/fa7f886d/attachment.html>


More information about the cfe-dev mailing list