diff options
Diffstat (limited to 'docs/ClangFormat.rst')
-rw-r--r-- | docs/ClangFormat.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ClangFormat.rst b/docs/ClangFormat.rst index 86c5ec5..45ea327 100644 --- a/docs/ClangFormat.rst +++ b/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> - imap <C-K> <ESC>:pyf <path-to-this-file>/clang-format.py<CR>i + 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 |