diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-09-14 11:57:34 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-09-14 11:59:57 -0400 |
commit | 966d479db99049c02503504051f9125343062a25 (patch) | |
tree | 2d2a96a7f9de2ff54e236e49dd2558f279a9e84c /vim/ftplugin | |
parent | e356a9ff39e930886be14e93cce00b6e7aafa47e (diff) | |
download | conf-966d479db99049c02503504051f9125343062a25.tar.gz conf-966d479db99049c02503504051f9125343062a25.zip |
set makeprg for rust files
Diffstat (limited to 'vim/ftplugin')
-rw-r--r-- | vim/ftplugin/rust.vim | 5 |
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 |