Add rust, syntastic

This commit is contained in:
Daniel Lundin 2016-10-21 12:38:33 +02:00
parent 8720850ae0
commit aa213ec7d9

21
.vimrc
View file

@ -10,6 +10,8 @@ Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'ervandew/supertab'
Plugin 'itchyny/lightline.vim'
Plugin 'NLKNguyen/papercolor-theme'
Plugin 'rust-lang/rust.vim'
Plugin 'scrooloose/syntastic'
Plugin 'tomtom/tcomment_vim'
Plugin 'Valloric/YouCompleteMe'
@ -328,12 +330,25 @@ if &term =~ "xterm" || &term =~ "screen" || &term == "screen"
endif
" Show syntax highlight group in the status bar
" map ,h :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<'
" \ . synIDattr(synID(line("."),col("."),0),"name") . "> lo<"
" \ . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">"<CR>
map ,h :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<'
\ . synIDattr(synID(line("."),col("."),0),"name") . "> lo<"
\ . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">"<CR>
set background=light
let g:PaperColor_Light_Override = { 'Background' : '#fefe00' }
let g:lightline = {
\ 'colorscheme': 'seoul256',
\ }
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
color dln-light