- Add the
hip.vimto~/.vim/syntax/directory - Add the following text to the end of
~/.vimrc
augroup filetypedetect
au BufNewFile,BufRead *.cpp set filetype=cpp syntax=hip
augroup END
augroup filetypedetect
au BufNewFile,BufRead *.c set filetype=c syntax=hip
augroup END
augroup filetypedetect
au BufNewFile,BufRead *.cu set filetype=cu syntax=hip
augroup END