1 -*- llvm/utils/vim/README -*-
3 These are syntax highlighting files for the VIM editor. Included are:
7 Syntax highlighting mode for LLVM assembly files. To use, COPY `llvm.vim' to
8 ~/.vim/syntax and add this code to your ~/.vimrc :
11 au! BufRead,BufNewFile *.ll set filetype=llvm
16 Syntax highlighting mode for TableGen description files. To use, COPY
17 `tablegen.vim' to ~/.vim/syntax and add this code to your ~/.vimrc :
20 au! BufRead,BufNewFile *.td set filetype=tablegen
24 IMPORTANT: Making symlinks from ~/.vim/syntax/... to the syntax files in your
25 LLVM source tree does not work, you DO need to copy the files directly.
27 However, if you do not already have a ~/.vim/syntax/ directory, simply
28 symlinking it to llvm/utils/vim will do the trick nicely, and you can stay
31 Note: If you notice missing or incorrect syntax highlighting, please contact
32 <llvmbugs [at] cs.uiuc.edu>; if you wish to provide a patch to improve the
33 functionality, it will be most appreciated. Thank you.
35 If you find yourself working with LLVM Makefiles often, but you don't get syntax
36 highlighting (because the files have names such as Makefile.rules or
37 TEST.nightly.Makefile), add the following to your ~/.vimrc:
39 " LLVM Makefile highlighting mode
41 au! BufRead,BufNewFile *Makefile* set filetype=make