From 76208727cd3037410d486f98a23988098f37b098 Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Fri, 2 Mar 2018 07:09:36 -0800 Subject: [PATCH] [vim] use cargo fmt for rustfmt, disable cursorline due to perf --- .vim/after/ftplugin/rust.vim | 1 + .vimrc | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.vim/after/ftplugin/rust.vim b/.vim/after/ftplugin/rust.vim index c08bb70..2aa38b1 100644 --- a/.vim/after/ftplugin/rust.vim +++ b/.vim/after/ftplugin/rust.vim @@ -1 +1,2 @@ compiler cargo +let g:rustfmt_command = 'cargo fmt --' diff --git a/.vimrc b/.vimrc index f411228..959b8b8 100644 --- a/.vimrc +++ b/.vimrc @@ -60,11 +60,11 @@ set splitright set lazyredraw " only show cursorline in current window -augroup CursorLine - au! - au VimEnter,WinEnter,BufWinEnter * setlocal cursorline - au WinLeave * setlocal nocursorline -augroup END +" augroup CursorLine +" au! +" au VimEnter,WinEnter,BufWinEnter * setlocal cursorline +" au WinLeave * setlocal nocursorline +" augroup END " }}}