From c8821fc0495d1d75cb3d716d73c4c28877e3513a Mon Sep 17 00:00:00 2001 From: w0rp Date: Mon, 24 Oct 2016 22:09:41 +0100 Subject: #144 - Implement commands for moving through warnings/errors --- plugin/ale.vim | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'plugin') diff --git a/plugin/ale.vim b/plugin/ale.vim index 64c20c66..43f38927 100644 --- a/plugin/ale.vim +++ b/plugin/ale.vim @@ -131,6 +131,18 @@ let g:ale_statusline_format = get(g:, 'ale_statusline_format', let g:ale_warn_about_trailing_whitespace = \ get(g:, 'ale_warn_about_trailing_whitespace', 1) +" Define commands for moving through warnings and errors. +command! ALEPrevious :call ale#loclist_jumping#Jump('before', 0) +command! ALEPreviousWrap :call ale#loclist_jumping#Jump('before', 1) +command! ALENext :call ale#loclist_jumping#Jump('after', 0) +command! ALENextWrap :call ale#loclist_jumping#Jump('after', 1) + +" mappings for commands +nnoremap (ale_previous) :ALEPrevious +nnoremap (ale_previous_wrap) :ALEPreviousWrap +nnoremap (ale_next) :ALENext +nnoremap (ale_next_wrap) :ALENextWrap + " Housekeeping augroup ALECleanupGroup -- cgit v1.2.3