1 " LLVM coding guidelines conformance for VIM
2 " Maintainer: LLVM Team, http://llvm.cs.uiuc.edu
4 " WARNING: Read before you source in all these commands and macros! Some
5 " of them may change VIM behavior that you depend on.
10 " A tab produces a 2-space indentation
16 " C/C++ programming helpers
19 " Add and delete spaces in increments of `shiftwidth' for tabs
22 " Enable filetype detection
25 " LLVM Makefiles can have names such as Makefile.rules or TEST.nightly.Makefile,
26 " so it's important to categorize them as such.
28 au! BufRead,BufNewFile *Makefile* set filetype=make
31 " In Makefiles, don't expand tabs to spaces, since we need the actual tabs
32 autocmd FileType make set noexpandtab
34 " Useful macros for cleaning up code to conform to LLVM coding guidelines
36 " Delete trailing whitespace and tabs at the end of each line
37 map :dtws :%s/[\ \t]\+$//
39 " Convert all tab characters to two spaces