add syntax for tpp files in vimrc

This commit is contained in:
Hugo LAMY
2022-07-05 15:33:00 +02:00
parent 51b2ba3455
commit 958a0c83b3

View File

@@ -57,6 +57,16 @@ set nowrap
"---------------------------------------------------------------
" to use the syntax highlight of .hpp on .tpp files
"---------------------------------------------------------------
"https://beerpla.net/2008/04/02/how-to-add-a-vim-file-extension-to-syntax-highlighting/
filetype on
au BufNewFile,BufRead *.tpp set filetype=cpp
"--------------------------------------------------------------- "---------------------------------------------------------------
" pour pouvoir utiliser la norminette partout " pour pouvoir utiliser la norminette partout
"--------------------------------------------------------------- "---------------------------------------------------------------