summaryrefslogtreecommitdiffstats
path: root/llvm/utils/vim/ftdetect
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2015-04-21 01:35:42 +0000
committerMatthias Braun <matze@braunis.de>2015-04-21 01:35:42 +0000
commit2718fb1d69fbba728ac636032432811aceb098d6 (patch)
tree7fff466b8b3e30a061e75e57cba0941f3484c460 /llvm/utils/vim/ftdetect
parent7091c2ca3ff63acd4671d92eedb075a100eea9b2 (diff)
downloadbcm5719-llvm-2718fb1d69fbba728ac636032432811aceb098d6.tar.gz
bcm5719-llvm-2718fb1d69fbba728ac636032432811aceb098d6.zip
Enhanced vim support.
This brings the utils/vim folder into a more vim-like format by moving the syntax hightlighting files into a syntax subdirectory. It adds some minimal settings that everyone should agree on to ftdetect/ftplugin and features a new indentation plugin for .ll files. llvm-svn: 235369
Diffstat (limited to 'llvm/utils/vim/ftdetect')
-rw-r--r--llvm/utils/vim/ftdetect/llvm.vim1
-rw-r--r--llvm/utils/vim/ftdetect/tablegen.vim1
2 files changed, 2 insertions, 0 deletions
diff --git a/llvm/utils/vim/ftdetect/llvm.vim b/llvm/utils/vim/ftdetect/llvm.vim
new file mode 100644
index 00000000000..161ceb2bd55
--- /dev/null
+++ b/llvm/utils/vim/ftdetect/llvm.vim
@@ -0,0 +1 @@
+au BufRead,BufNewFile *.ll set filetype=llvm
diff --git a/llvm/utils/vim/ftdetect/tablegen.vim b/llvm/utils/vim/ftdetect/tablegen.vim
new file mode 100644
index 00000000000..95efa6efdd0
--- /dev/null
+++ b/llvm/utils/vim/ftdetect/tablegen.vim
@@ -0,0 +1 @@
+au BufRead,BufNewFile *.td set filetype=tablegen
OpenPOWER on IntegriCloud