diff --git a/vimrc b/vimrc index 0cffbd2..bf9fd63 100644 --- a/vimrc +++ b/vimrc @@ -44,6 +44,14 @@ augroup vimrcEx autocmd BufRead,BufNewFile Appraisals set filetype=ruby autocmd BufRead,BufNewFile *.md set filetype=markdown autocmd BufRead,BufNewFile .{jscs,jshint,eslint}rc set filetype=json + + " ALE linting events + set updatetime=1000 + let g:ale_lint_on_text_changed = 0 + autocmd CursorHold * call ale#Lint() + autocmd CursorHoldI * call ale#Lint() + autocmd InsertEnter * call ale#Lint() + autocmd InsertLeave * call ale#Lint() augroup END " When the type of shell script is /bin/sh, assume a POSIX-compatible @@ -134,11 +142,9 @@ nnoremap k nnoremap h nnoremap l -" configure syntastic syntax checking to check on open as well as save -let g:syntastic_check_on_open=1 -let g:syntastic_html_tidy_ignore_errors=[" proprietary attribute \"ng-"] -let g:syntastic_eruby_ruby_quiet_messages = - \ {"regex": "possibly useless use of a variable in void context"} +" Move between linting errors +nnoremap ]r :ALENextWrap +nnoremap [r :ALEPreviousWrap " Set spellfile to location that is guaranteed to exist, can be symlinked to " Dropbox or kept in Git and managed outside of thoughtbot/dotfiles using rcm. diff --git a/vimrc.bundles b/vimrc.bundles index 936d6c7..f568aae 100644 --- a/vimrc.bundles +++ b/vimrc.bundles @@ -43,7 +43,6 @@ Plug 'janko-m/vim-test' Plug 'kchmck/vim-coffee-script' Plug 'pangloss/vim-javascript' Plug 'pbrisbin/vim-mkdir' -Plug 'scrooloose/syntastic' Plug 'slim-template/vim-slim' Plug 'tpope/vim-bundler' Plug 'tpope/vim-endwise' @@ -57,6 +56,7 @@ Plug 'tpope/vim-rhubarb' Plug 'tpope/vim-surround' Plug 'vim-ruby/vim-ruby' Plug 'vim-scripts/tComment' +Plug 'w0rp/ale' if filereadable(expand("~/.vimrc.bundles.local")) source ~/.vimrc.bundles.local