From d6a11789afb422f2222c440053f380ee6fd7e94e Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Mon, 6 Feb 2017 12:48:23 -0800 Subject: [PATCH] [vim] Rust, folding, other stuff --- .vim/after/ftplugin/rust.vim | 1 + .vimrc | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 .vim/after/ftplugin/rust.vim diff --git a/.vim/after/ftplugin/rust.vim b/.vim/after/ftplugin/rust.vim new file mode 100644 index 0000000..16ffc97 --- /dev/null +++ b/.vim/after/ftplugin/rust.vim @@ -0,0 +1 @@ +setlocal foldmethod=syntax diff --git a/.vimrc b/.vimrc index 61a3784..baa4955 100644 --- a/.vimrc +++ b/.vimrc @@ -44,7 +44,7 @@ inoremap # X# set hidden " programming -syntax on +syntax enable set number set ttyfast set lazyredraw @@ -121,7 +121,7 @@ endif " folding " set foldmethod=indent -set foldlevel=3 +" set foldlevel=3 " set nofoldenable " view @@ -153,7 +153,7 @@ set directory=$HOME/.vim_tmp// " set titleold= " customize syntax highlighting -highlight MatchParen term=inverse gui=inverse +" highlight MatchParen ctermbg= " highlight MatchParen cterm=bold ctermbg=none ctermfg=none " highlight Folded ctermfg=1 ctermbg=NONE " highlight FoldColumn ctermfg=1 ctermbg=NONE