blob: 8aea87924eb26aa59d14c1ad98c5c11ddf7704b9 [file] [log] [blame]
Misha Brukman115dc0d2003-08-11 17:56:08 +00001-*- llvm/utils/vim/README -*-
2
Matthias Braunb1675e52015-04-21 01:35:42 +00003This directory contains settings for the vim editor to work on llvm *.ll and
4tablegen *.td files. It comes with filetype detection rules in the (ftdetect),
5syntax highlighting (syntax), some minimal sensible default settings (ftplugin)
6and indentation plugins (indent).
Misha Brukman115dc0d2003-08-11 17:56:08 +00007
Matthias Braunb1675e52015-04-21 01:35:42 +00008To install copy all subdirectories to your $HOME/.vim or if you prefer create
9symlinks 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.
Misha Brukman3871f052003-08-11 18:05:19 +000010
Misha Brukman115dc0d2003-08-11 17:56:08 +000011Note: If you notice missing or incorrect syntax highlighting, please contact
Tanya Lattner377a9842015-08-05 03:51:17 +000012<llvm-bugs [at] lists.llvm.org>; if you wish to provide a patch to improve the
Misha Brukman115dc0d2003-08-11 17:56:08 +000013functionality, it will be most appreciated. Thank you.
Misha Brukmane38adf52004-05-19 21:20:40 +000014
15If you find yourself working with LLVM Makefiles often, but you don't get syntax
16highlighting (because the files have names such as Makefile.rules or
17TEST.nightly.Makefile), add the following to your ~/.vimrc:
18
19 " LLVM Makefile highlighting mode
20 augroup filetype
21 au! BufRead,BufNewFile *Makefile* set filetype=make
22 augroup END