vimrc: Add simple linter autocommand/group
This commit is contained in:
parent
4a8ac79df2
commit
2903e848d9
1 changed files with 6 additions and 0 deletions
|
@ -44,6 +44,12 @@ augroup spellcheckr " Spelling, for some files...
|
|||
autocmd!
|
||||
autocmd BufNewFile,BufRead *.md,*.rdoc,*.txt,*.wiki setlocal spell
|
||||
augroup END
|
||||
|
||||
augroup lintr " Simple linting, based on :make!
|
||||
autocmd!
|
||||
autocmd BufWritePost *.rb silent make! <afile> | silent redraw!
|
||||
autocmd QuickFixCmdPost [^l]* cwindow
|
||||
augroup END
|
||||
" ==============================================================================
|
||||
" Status Line
|
||||
" ==============================================================================
|
||||
|
|
Loading…
Reference in a new issue