Skip to content

Commit

Permalink
Added syntastic config to vimrc
Browse files Browse the repository at this point in the history
  • Loading branch information
LuRsT committed Apr 21, 2015
1 parent 2994e75 commit c2d3fc0
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .xdg/vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,17 @@ let Grep_Skip_Dirs = '.git'
let Grep_Skip_Files = 'tags *.pyc'
let Grep_Default_Filelist = '*'

" Syntastic
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*

let g:syntastic_always_populate_loc_list = 0
let g:syntastic_auto_loc_list = 0
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_python_checkers = ['flake8']


" Skeletons
au bufnewfile *.pl 0r $XDG_CONFIG_HOME/vim/skeletons/template.pl
Expand Down Expand Up @@ -347,7 +358,7 @@ augroup END
autocmd FileType perl nmap W :Shell perl %<CR>
autocmd FileType python nmap W :Shell python %<CR>
autocmd FileType php nmap W :Shell php %<CR>
autocmd FileType html nmap W :!firefox %<CR>
autocmd FileType html nmap W :Shell firefox %<CR>
" Locate Module
autocmd FileType perl map L :cexpr system("locate_mod.pl " . shellescape(expand('<cWORD>')))<cr>:cope<cr><cr>
Expand Down Expand Up @@ -396,3 +407,5 @@ endfunc

map <ESC>[8~ <End>
map <ESC>[7~ <Home>
map <C-p> :Shell isort -sl -w 200 %<CR>

0 comments on commit c2d3fc0

Please sign in to comment.