add tests.hpp

This commit is contained in:
hugogogo
2022-06-03 12:47:53 +02:00
parent f130359980
commit 921d9b5e36
4 changed files with 69 additions and 31 deletions

View File

@@ -130,12 +130,17 @@ endfunction
function! COLORFile()
silent! 0r $HOME/.vim/templates/skeleton_colors.h
endfunction
" to autofill a new tests.hpp file
function! TESTSFile()
silent! 0r $HOME/.vim/templates/skeleton_tests.hpp
endfunction
" autofill calls
autocmd BufNewFile *.hpp call HPPFile()
autocmd BufNewFile *.cpp if @% == 'main.cpp' | call MAINCPPFile() | else | call CPPFile()
autocmd BufNewFile Makefile call MAKEFile()
autocmd BufNewFile colors.h call COLORFile()
autocmd BufNewFile testss.hpp call TESTSFile()