kogger
January 5th, 2010, 01:09 AM
For some reason I can't get Vim to jump to the next error in a list. I'm testing this with Java, and to compile I write:
:compiler javac
:make HelloWorld.java
If I have one error, it works fine. I type :cc, and the cursor jumps to the line the error is on and displays it. But if there's more than one error, then typing :cn displays the next one, but the cursor won't jump to it. Every :cn, :cp, and :cc command causes the cursor to jump to the first error, not the next, previous, or current (despite the fact that they are displayed correctly).
This wouldn't bother me as much if the errors printed bothered to display the line the error is on, since I could just jump to it, but it would be a lot easier if Vim just jumped to the correct error for me.
Is this a bug, or is there a way to fix this?
:compiler javac
:make HelloWorld.java
If I have one error, it works fine. I type :cc, and the cursor jumps to the line the error is on and displays it. But if there's more than one error, then typing :cn displays the next one, but the cursor won't jump to it. Every :cn, :cp, and :cc command causes the cursor to jump to the first error, not the next, previous, or current (despite the fact that they are displayed correctly).
This wouldn't bother me as much if the errors printed bothered to display the line the error is on, since I could just jump to it, but it would be a lot easier if Vim just jumped to the correct error for me.
Is this a bug, or is there a way to fix this?