summaryrefslogtreecommitdiffstats
path: root/llvm/utils/vim
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-01-21 21:47:51 +0000
committerDan Gohman <gohman@apple.com>2009-01-21 21:47:51 +0000
commit3155533003f935295c32b0db2bdf8fad3170ad79 (patch)
tree36565c92a2380b05cd9acbe3c1237e8e4dc4107c /llvm/utils/vim
parent455be5a0a0d1d83bff4e801305e50ce334e4f7c7 (diff)
downloadbcm5719-llvm-3155533003f935295c32b0db2bdf8fad3170ad79.tar.gz
bcm5719-llvm-3155533003f935295c32b0db2bdf8fad3170ad79.zip
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. llvm-svn: 62718
Diffstat (limited to 'llvm/utils/vim')
-rw-r--r--llvm/utils/vim/vimrc12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/utils/vim/vimrc b/llvm/utils/vim/vimrc
index 1b2de0f7f2c..7b1fd872b27 100644
--- a/llvm/utils/vim/vimrc
+++ b/llvm/utils/vim/vimrc
@@ -58,3 +58,15 @@ command! DeleteTrailingWs :%s/\s\+$//
" 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
OpenPOWER on IntegriCloud