We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 157cfe8 + e0655eb commit 7e64387Copy full SHA for 7e64387
autoload/clang_format.vim
@@ -262,7 +262,7 @@ endfunction
262
263
function! clang_format#enable_format_on_insert() abort
264
augroup plugin-clang-format-auto-format-insert
265
- autocmd!
+ autocmd! * <buffer>
266
autocmd InsertEnter <buffer> let s:pos_on_insertenter = getpos('.')
267
autocmd InsertLeave <buffer> call s:format_inserted_area()
268
augroup END
0 commit comments