summaryrefslogtreecommitdiff
path: root/ftplugin/rust.vim
diff options
context:
space:
mode:
authorAkshay <[email protected]>2024-07-23 20:26:43 +0100
committerAkshay <[email protected]>2024-07-23 20:26:43 +0100
commitddc6f72c5b1cf6916ef2705b226d0c53950b9386 (patch)
tree56b1d651dfe18a5e45b8cc6477ff8cb49991d98c /ftplugin/rust.vim
init
Diffstat (limited to 'ftplugin/rust.vim')
-rw-r--r--ftplugin/rust.vim13
1 files changed, 13 insertions, 0 deletions
diff --git a/ftplugin/rust.vim b/ftplugin/rust.vim
new file mode 100644
index 0000000..50645fa
--- /dev/null
+++ b/ftplugin/rust.vim
@@ -0,0 +1,13 @@
1setlocal ts=4 sts=4 sw=4 expandtab
2
3set formatprg=rustfmt
4set errorformat=
5 \%-G,
6 \%-Gerror:\ aborting\ %.%#,
7 \%-Gerror:\ Could\ not\ compile\ %.%#,
8 \%Eerror:\ %m,
9 \%Eerror[E%n]:\ %m,
10 \%Wwarning:\ %m,
11 \%Inote:\ %m,
12 \%C\ %#-->\ %f:%l:%c,
13 \%E\ \ left:%m,%C\ right:%m\ %f:%l:%c,%Z