vim

vim config files
git clone https://git.bracken.jp/vim.git
Log | Files | Refs | LICENSE

commit 15a7ce429c0381a06d1f8fb28457d77b6865cef6
parent 32cd8c793a61c72ae757daa813d1529ee25655c8
Author: Chris Bracken <chris@bracken.jp>
Date:   Fri, 19 Oct 2018 18:12:27 -0700

Return to normal mode before invoking clang-format

Diffstat:
Mvimrc | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vimrc b/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]