diff options
| author | Mitsuo Tokumori <[email protected]> | 2023-11-23 22:03:31 -0500 |
|---|---|---|
| committer | Mitsuo Tokumori <[email protected]> | 2023-11-23 22:03:31 -0500 |
| commit | 2f2555df201c74cd0f93b1e543fd397cda9a23e5 (patch) | |
| tree | ee9c808a00142709e7bbde853054decd369f42ab /nvim/pack/mitsuo/start/fun/plugin/fun.vim | |
| parent | 19487f950f1c28fd8403d8ce320300c0b8517b82 (diff) | |
| download | dotfiles-2f2555df201c74cd0f93b1e543fd397cda9a23e5.tar.gz dotfiles-2f2555df201c74cd0f93b1e543fd397cda9a23e5.tar.bz2 dotfiles-2f2555df201c74cd0f93b1e543fd397cda9a23e5.zip | |
Comment C++ stuff, add TeX autocommands for neovim
Diffstat (limited to 'nvim/pack/mitsuo/start/fun/plugin/fun.vim')
| -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() |
