0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
1 -*- llvm/utils/vim/README -*-
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
2
|
95
|
3 This directory contains settings for the vim editor to work on llvm *.ll and
|
|
4 tablegen *.td files. It comes with filetype detection rules in the (ftdetect),
|
|
5 syntax highlighting (syntax), some minimal sensible default settings (ftplugin)
|
|
6 and indentation plugins (indent).
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
7
|
95
|
8 To install copy all subdirectories to your $HOME/.vim or if you prefer create
|
|
9 symlinks to the files here. Do not copy the vimrc file here it is only meant as an inspiration and starting point for those working on llvm c++ code.
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
10
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
11 Note: If you notice missing or incorrect syntax highlighting, please contact
|
95
|
12 <llvm-bugs [at] lists.llvm.org>; if you wish to provide a patch to improve the
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
13 functionality, it will be most appreciated. Thank you.
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
14
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
15 If you find yourself working with LLVM Makefiles often, but you don't get syntax
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
16 highlighting (because the files have names such as Makefile.rules or
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
17 TEST.nightly.Makefile), add the following to your ~/.vimrc:
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
18
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
19 " LLVM Makefile highlighting mode
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
20 augroup filetype
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
21 au! BufRead,BufNewFile *Makefile* set filetype=make
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
22 augroup END
|