From ddc6f72c5b1cf6916ef2705b226d0c53950b9386 Mon Sep 17 00:00:00 2001 From: Akshay Date: Tue, 23 Jul 2024 20:26:43 +0100 Subject: init --- ftplugin/rust.vim | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 ftplugin/rust.vim (limited to 'ftplugin/rust.vim') 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 @@ +setlocal ts=4 sts=4 sw=4 expandtab + +set formatprg=rustfmt +set errorformat= + \%-G, + \%-Gerror:\ aborting\ %.%#, + \%-Gerror:\ Could\ not\ compile\ %.%#, + \%Eerror:\ %m, + \%Eerror[E%n]:\ %m, + \%Wwarning:\ %m, + \%Inote:\ %m, + \%C\ %#-->\ %f:%l:%c, + \%E\ \ left:%m,%C\ right:%m\ %f:%l:%c,%Z -- cgit v1.2.3