summaryrefslogtreecommitdiffstats
path: root/vim/ftplugin
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-09-14 11:57:34 -0400
committerJesse Luehrs <doy@tozt.net>2014-09-14 11:59:57 -0400
commit966d479db99049c02503504051f9125343062a25 (patch)
tree2d2a96a7f9de2ff54e236e49dd2558f279a9e84c /vim/ftplugin
parente356a9ff39e930886be14e93cce00b6e7aafa47e (diff)
downloadconf-966d479db99049c02503504051f9125343062a25.tar.gz
conf-966d479db99049c02503504051f9125343062a25.zip
set makeprg for rust files
Diffstat (limited to 'vim/ftplugin')
-rw-r--r--vim/ftplugin/rust.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/vim/ftplugin/rust.vim b/vim/ftplugin/rust.vim
new file mode 100644
index 0000000..3b7a5ec
--- /dev/null
+++ b/vim/ftplugin/rust.vim
@@ -0,0 +1,5 @@
+if filereadable("Cargo.toml")
+ setlocal makeprg=cargo\ build
+else
+ setlocal makeprg=rustc\ %
+endif