Files
rocm-systems/projects/hip/util/vim/README.md
T

17 lines
440 B
Markdown
Raw Normal View History

2024-05-28 18:42:08 +02:00
### How to install?
2016-01-26 20:14:33 -06:00
1. Add the <code>hip.vim</code> to <code>~/.vim/syntax/</code> directory
2. Add the following text to the end of <code>~/.vimrc</code>
2024-05-28 18:42:08 +02:00
```shell
2016-01-26 20:14:33 -06:00
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
```