1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

vim: make syntastic actually usable

This commit is contained in:
Joe Groocock 2018-04-12 02:59:23 +01:00
parent 366873ea47
commit 8edf74dc4f
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86

View File

@ -41,6 +41,7 @@ let mapleader="\<space>"
" Autosave settings " Autosave settings
function! SaveIfExist() function! SaveIfExist()
if @% != "" && filereadable(@%) && !&readonly && &modified if @% != "" && filereadable(@%) && !&readonly && &modified
SyntasticCheck
write write
endif endif
endfunction endfunction
@ -128,6 +129,14 @@ let g:Powerline_symbols = 'fancy'
let g:airline_powerline_fonts = 1 let g:airline_powerline_fonts = 1
let g:airline_theme='solarized' let g:airline_theme='solarized'
let g:airline#extensions#tabline#enabled = 1 let g:airline#extensions#tabline#enabled = 1
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
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
" vim-markdown plugin " vim-markdown plugin
let vim_markdown_preview_toggle=0 let vim_markdown_preview_toggle=0