Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ideavim in intellij is there a shortcut to goto next error?

I'm now in a file, I want to hit and it will go to next compilation error in my file i fix it, then hit again the shortcut will go to next error and so forth... i'm already in my text file i cant find how to navigate to next error while editing my text file.

like image 945
Jas Avatar asked Jan 09 '14 11:01

Jas


2 Answers

I am just starting using intellij (changed from Eclipse) recently. For your question:

Right click the scroll bar, in the popup menu, choose the one (radio button) you need.

then in editor, press F2 to jump to next error/problem. shift-F2 back.

btw, this is not a ideavim shortcut.

like image 112
Kent Avatar answered Oct 01 '22 05:10

Kent


You can set shortcuts for intellij actions in ideavim. Below lines set gn and gp for next and previous errors.

% cat ~/.ideavimrc
nnoremap gn :action GotoNextError<CR>
nnoremap gp :action GotoPreviousError<CR>

More details: Useful customizations in .ideavimrc

Actionlist: https://gist.github.com/zchee/9c78f91cc5ad771c1f5d

Docs: https://github.com/JetBrains/ideavim#executing-ide-actions

like image 38
balki Avatar answered Oct 01 '22 03:10

balki