Making Vim Recognize Custom File Extensions as C
Vim determines file types by extension to apply syntax highlighting and indentation. If you have custom file extensions that should be treated as C files, you need to configure Vim to recognize them. Using autocommand in .vimrc Add an autocommand to your ~/.vimrc: ” Treat .h and .c files in a custom directory as C…
