[llvm-commits] [llvm] r62718 - /llvm/trunk/utils/vim/vimrc

Dan Gohman gohman at apple.com
Wed Jan 21 13:47:51 PST 2009

Author: djg
Date: Wed Jan 21 15:47:51 2009
New Revision: 62718

URL: http://llvm.org/viewvc/llvm-project?rev=62718&view=rev
Enable syntax highlighting of LLVM and tablegen files by default,
so that users don't have to copy text from the README to get this.


Modified: llvm/trunk/utils/vim/vimrc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/vim/vimrc?rev=62718&r1=62717&r2=62718&view=diff

--- llvm/trunk/utils/vim/vimrc (original)
+++ llvm/trunk/utils/vim/vimrc Wed Jan 21 15:47:51 2009
@@ -58,3 +58,15 @@
 " Convert all tab characters to two spaces
 command! Untab :%s/\t/  /g
+" Enable syntax highlighting for LLVM files. To use, copy
+" utils/vim/llvm.vim to ~/.vim/syntax .
+augroup filetype
+  au! BufRead,BufNewFile *.ll     set filetype=llvm
+augroup END
+" Enable syntax highlighting for tablegen files. To use, copy
+" utils/vim/tablegen.vim to ~/.vim/syntax .
+augroup filetype
+  au! BufRead,BufNewFile *.td     set filetype=tablegen
+augroup END

More information about the llvm-commits mailing list