From 1290e4181c6d89da495fe60da0f6d9a506260bd6 Mon Sep 17 00:00:00 2001 From: tim Date: Sat, 21 Jan 2012 14:58:32 -0600 Subject: [PATCH] Added a `src/etc/vim/ftdetect` directory and file. Previously, in order to get vim's syntax highlighting, you needed to manually `:setf rust` on every file. Now vim will recognize *.rs files as rust. This is a little nicer. --- src/etc/vim/ftdetect/rust.vim | 1 + 1 file changed, 1 insertion(+) create mode 100644 src/etc/vim/ftdetect/rust.vim diff --git a/src/etc/vim/ftdetect/rust.vim b/src/etc/vim/ftdetect/rust.vim new file mode 100644 index 00000000000..b2fb35911a9 --- /dev/null +++ b/src/etc/vim/ftdetect/rust.vim @@ -0,0 +1 @@ +au BufRead,BufNewFile *.rs set filetype=rust