<div dir="ltr"><div><div><div><div><div><div><div>I am trying to setup my vim with clang-format, on centos 6.5 using <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__clang.llvm.org_docs_ClangFormat.html&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=HkOpO_AvqLiQRhM4TkA0OAkVFWLZciHjAvQWQb25mkU&m=7KBkJaF41As6bEv-nVLeQ3etSwwwlZYfiFy4VKr0eeA&s=nTUlvOf75NBwfRy6reErdZc1yclbENJWZoDjfthiZ_s&e=">http://clang.llvm.org/docs/ClangFormat.html</a><br><br></div>Here are the steps and configs<br></div>1. Yum install clang<br></div><div>2. copied clang-format.py to my home dir /home/nitin<br></div>3.  I have .vimrc in my home directory. added following lines:<br>     map <C-K> :pyf /home/nitin/clang-format.py<cr><br>     imap <C-K> <c-o>:pyf /home/nitin/clang-format.py<cr><br></div>4. When i open source file in vim and try to Ctrl+k, vim says command is not available in this version<br><br></div>Can somebody help me here?<br><br></div>Thanks<br></div>Nitin<br><br></div>