diff --git a/config_files/.vimrc b/config_files/.vimrc index 0f24f7d..337bf17 100644 --- a/config_files/.vimrc +++ b/config_files/.vimrc @@ -224,6 +224,10 @@ endfunction function! TESTSFile() silent! 0r $HOME/.vim/templates/skeleton_tests.hpp endfunction +" to autofill a new html file +function! HTMLFile() + silent! 0r $HOME/.vim/templates/skeleton.html +endfunction " autofill calls autocmd BufNewFile *.hpp call HPPFile() @@ -231,6 +235,7 @@ autocmd BufNewFile *.cpp if @% == 'main.cpp' | call MAINCPPFile() | else | call autocmd BufNewFile Makefile call MAKEFile() autocmd BufNewFile colors.h call COLORFile() autocmd BufNewFile tests.hpp call TESTSFile() +autocmd BufNewFile *.html call HTMLFile() " --------------------------------------------------------------------- " pour mettre en gras dans des fichiers txt @@ -253,9 +258,3 @@ au filetype text syn match Asterisks contained "\*\*" conceal au filetype text syn match EscapedAsterisks contained "\\" conceal au filetype text syn match AsteriskBold "\*\*.*\*\*" contains=Asterisks,EscapedAsterisks -" --------------------------------------------------------------------- -" remplis les elements de base d'un fichier html -" --------------------------------------------------------------------- - -command! Html 0s/^/\r\r\t
\r\t\t\r\t\t\r\t\t