Skip to content

Commit 1290e41

Browse files
author
tim
committed
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.
1 parent 2a59ab8 commit 1290e41

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/etc/vim/ftdetect/rust.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
au BufRead,BufNewFile *.rs set filetype=rust

0 commit comments

Comments
 (0)