Initial commit

This commit is contained in:
Zhongwei Li
2025-11-29 18:49:58 +08:00
commit 5007abf04b
89 changed files with 44129 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
" Vim configuration for clang-format integration
" Format on save for C++ files
" Python 3 support
if has('python3')
map <C-K> :py3f /path/to/clang-format.py<cr>
imap <C-K> <c-o>:py3f /path/to/clang-format.py<cr>
endif
" Python 2 support
if has('python')
map <C-K> :pyf /path/to/clang-format.py<cr>
imap <C-K> <c-o>:pyf /path/to/clang-format.py<cr>
endif
" Format on save
function! Formatonsave()
let l:formatdiff = 1
py3f /path/to/clang-format.py
endfunction
autocmd BufWritePre *.h,*.cc,*.cpp call Formatonsave()