commit 13ff89d8612d66fe74c3a6dfb92ef634fc3ba4e2
parent b94bbe4f90fb6e257b45398064e7d2a698893833
Author: Chris Bracken <chris@bracken.jp>
Date: Fri, 19 Oct 2018 18:12:27 -0700
Return to normal mode before invoking clang-format
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.vim/vimrc b/.vim/vimrc
@@ -39,8 +39,8 @@ noremap <Left> <NOP>
noremap <Right> <NOP>
" Map clang-format
-map <C-K> :call ClangFormat()<cr>
-imap <C-K> <c-o> :call ClangFormat()<cr>
+map <C-K> :call ClangFormat()<cr>
+imap <C-K> <ESC>:call ClangFormat()<cr>
function ClangFormat()
let l:line_start = getpos("'<")[1]