Fix clang-format use in Vim

This commit is contained in:
Fabio Scotto di Santolo
2025-07-07 16:24:28 +02:00
parent 302f423720
commit 4007ef2333

View File

@@ -45,7 +45,8 @@ let g:clang_format#style_options = {
\ 'SpaceBeforeParens': 'ControlStatements' \ 'SpaceBeforeParens': 'ControlStatements'
\ } \ }
autocmd BufWritePre *.c,*.h call system('clang-format -i ' . shellescape(@%)) | edit! autocmd BufWritePre *.c,*.h silent! execute '%!clang-format'
"autocmd BufWritePre *.c,*.h call system('clang-format -i ' . shellescape(@%))
" ---------------------------------------- " ----------------------------------------
" General UI settings " General UI settings