[vim] Automatically rustfmt on save
change
commit 0a0df6cb68c986d196080e8a879dd0bd2b11a6c1
author Alpha Chen <alpha.chen@gmail.com>
date
parent 221ec4e9
diff --git a/.vimrc b/.vimrc
index d957eab6..a6f5a203 100644
--- a/.vimrc
+++ b/.vimrc
@@ -201,6 +201,9 @@ python del powerline_setup
 " vim-projectionist
 nnoremap <leader>a :A<cr>
 
+" rust.vim
+let g:rustfmt_autosave = 1
+
 " gui stuff
 set guioptions-=T
 set guifont=Consolas:h9:cANSI