clang-format: improve vim integration docs
authorSaleem Abdulrasool <compnerd@compnerd.org>
Mon, 27 Oct 2014 17:13:33 +0000 (17:13 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Mon, 27 Oct 2014 17:13:33 +0000 (17:13 +0000)
commit1f060a85526ac08fd23b46968fd97f75a2930030
treed44d44a2301a8c43402e9ce904cae4381768e07a
parent56346193894e1afb3b4705fc9526933e11ed4aec
clang-format: improve vim integration docs

Improve the documentation for vim integration of clang-format.  Prefer the use
of <c-o> to do the normal mode command execution to avoid side-effects of the
escape and re-insertion (cursor movement).  Tweak the macros to use a double
return to avoid having to manually return control to the editor from the
subprocess.

llvm-svn: 220685
clang/docs/ClangFormat.rst
clang/tools/clang-format/clang-format.py