diff options
Diffstat (limited to 'nvim/pack/mitsuo/start/fun/plugin')
| -rw-r--r-- | nvim/pack/mitsuo/start/fun/plugin/fun.vim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/nvim/pack/mitsuo/start/fun/plugin/fun.vim b/nvim/pack/mitsuo/start/fun/plugin/fun.vim index 42574d3..c992f93 100644 --- a/nvim/pack/mitsuo/start/fun/plugin/fun.vim +++ b/nvim/pack/mitsuo/start/fun/plugin/fun.vim @@ -107,3 +107,15 @@ function! ExportHTML (colorscheme="quiet", bg="light") endfunction command ExportHTML call ExportHTML() + +" C++ +" Formatting +" Ref.: https://clang.llvm.org/docs/ClangFormat.html +map <C-K> :pyf /usr/share/clang/clang-format.py<cr> +"imap <C-K> <c-o>:py3f /usr/share/clang/clang-format.py<cr> + +"function! Formatonsave() +" let l:formatdiff = 1 +" pyf /usr/share/clang/clang-format.py +"endfunction +"autocmd BufWritePre *.h,*.hpp,*.cc,*.cpp call Formatonsave() |
