diff options
Diffstat (limited to 'clang')
-rw-r--r-- | clang/docs/ClangFormat.rst | 4 | ||||
-rw-r--r-- | clang/tools/clang-format/clang-format.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/clang/docs/ClangFormat.rst b/clang/docs/ClangFormat.rst index b37241786b4..45ea3271799 100644 --- a/clang/docs/ClangFormat.rst +++ b/clang/docs/ClangFormat.rst @@ -96,8 +96,8 @@ This can be integrated by adding the following to your `.vimrc`: .. code-block:: vim - map <C-K> :pyf <path-to-this-file>/clang-format.py<cr><cr> - imap <C-K> <c-o>:pyf <path-to-this-file>/clang-format.py<cr><cr> + map <C-K> :pyf <path-to-this-file>/clang-format.py<cr> + imap <C-K> <c-o>:pyf <path-to-this-file>/clang-format.py<cr> The first line enables :program:`clang-format` for NORMAL and VISUAL mode, the second line adds support for INSERT mode. Change "C-K" to another binding if diff --git a/clang/tools/clang-format/clang-format.py b/clang/tools/clang-format/clang-format.py index 487b9ed48e1..3bb89e04b19 100644 --- a/clang/tools/clang-format/clang-format.py +++ b/clang/tools/clang-format/clang-format.py @@ -3,7 +3,7 @@ # - Add to your .vimrc: # # map <C-I> :pyf <path-to-this-file>/clang-format.py<cr> -# imap <C-I> <c-o>:pyf <path-to-this-file>/clang-format.py<cr><cr> +# imap <C-I> <c-o>:pyf <path-to-this-file>/clang-format.py<cr> # # The first line enables clang-format for NORMAL and VISUAL mode, the second # line adds support for INSERT mode. Change "C-I" to another binding if you |