<div dir="ltr">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=CnzuN65ENJ1H9py9XLiRvC_UQz6u3oG6GUNn7_wosSM&m=7EnBF0mlAyzfLdQJg-r_pddV0GKnMRMG6iJTRfmnRTs&s=Zg7l6KL7HGzFmQodRHxjV981HZf2fH-4pyusfEECAUs&e=" target="_blank">http://clang.llvm.org/docs/ClangFormat.html</a><br><div class="gmail_quote"><div dir="ltr"><div><div><div><div><div><div><div><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<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888">Nitin<br><br></font></span></div>
</div><br></div>