OSDN Git Service

Add SwiftShader source to repo
[android-x86/external-swiftshader.git] / src / LLVM / utils / vim / README
1 -*- llvm/utils/vim/README -*-\r
2 \r
3 These are syntax highlighting files for the VIM editor. Included are:\r
4 \r
5 * llvm.vim\r
6 \r
7   Syntax highlighting mode for LLVM assembly files. To use, copy `llvm.vim' to\r
8   ~/.vim/syntax and add this code to your ~/.vimrc :\r
9 \r
10   augroup filetype\r
11     au! BufRead,BufNewFile *.ll     set filetype=llvm\r
12   augroup END\r
13 \r
14 * tablegen.vim\r
15 \r
16   Syntax highlighting mode for TableGen description files. To use, copy\r
17   `tablegen.vim' to ~/.vim/syntax and add this code to your ~/.vimrc :\r
18 \r
19   augroup filetype\r
20     au! BufRead,BufNewFile *.td     set filetype=tablegen\r
21   augroup END\r
22 \r
23 \r
24 If you prefer, instead of making copies you can make symlinks from\r
25 ~/.vim/syntax/... to the syntax files in your LLVM source tree. Apparently\r
26 this did not work with older versions of vim however, so if this doesn't\r
27 work you may need to make actual copies of the files.\r
28 \r
29 Another option, if you do not already have a ~/.vim/syntax directory, is\r
30 to symlink ~/.vim/syntax itself to llvm/utils/vim .\r
31 \r
32 Note: If you notice missing or incorrect syntax highlighting, please contact\r
33 <llvmbugs [at] cs.uiuc.edu>; if you wish to provide a patch to improve the\r
34 functionality, it will be most appreciated. Thank you.\r
35 \r
36 If you find yourself working with LLVM Makefiles often, but you don't get syntax\r
37 highlighting (because the files have names such as Makefile.rules or\r
38 TEST.nightly.Makefile), add the following to your ~/.vimrc:\r
39 \r
40   " LLVM Makefile highlighting mode\r
41   augroup filetype\r
42     au! BufRead,BufNewFile *Makefile*     set filetype=make\r
43   augroup END\r