summaryrefslogtreecommitdiff
path: root/utils/vim/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'utils/vim/vimrc')
-rw-r--r--utils/vim/vimrc12
1 files changed, 12 insertions, 0 deletions
diff --git a/utils/vim/vimrc b/utils/vim/vimrc
index 1b2de0f7f2c..7b1fd872b27 100644
--- a/utils/vim/vimrc
+++ b/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