Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quickfix Formatting for Jumping to Errors #63

Open
CaptainKraft opened this issue Jun 5, 2017 · 5 comments
Open

Quickfix Formatting for Jumping to Errors #63

CaptainKraft opened this issue Jun 5, 2017 · 5 comments

Comments

@CaptainKraft
Copy link

Are there any plans to implement some sort of quickfix window formatting so that we can jump to lines referenced in compiler output?

@zah
Copy link
Owner

zah commented Jun 5, 2017

I use Syntastic and the plugin tries to automatically integrate with it. The result should be that you see the compilation errors as soon as you save the file. To jump from error to error, nothing beats unimpaired's ]q and [q buttons.

@CaptainKraft
Copy link
Author

I don't use many plugins and my workflow for handling compiler errors is :cnext and :cprev for navigating the warnings and errors that show up in the quickfix.

I'll see if I can dive into the code to find a way to get this done for Nim output.

Thanks

@zah
Copy link
Owner

zah commented Jun 5, 2017

The plugin modifies few settings from stock vim that should be relevant. It sets makeprg and errorformat to some appropriate settings here:

https://github.com/zah/nim.vim/blob/master/compiler/nim.vim

@CaptainKraft
Copy link
Author

The errorformat setting in that file is exactly what I need, but it doesn't seem to take effect. None of the changes I make to that file seem to change anything when I compile from Vim.

I do have a Makefile, so perhaps using it causes Vim to skip your compiler file in the plugin?

@CaptainKraft
Copy link
Author

I just came back to playing with Nim again and thought I'd revive this thread. Jumping to errors still doesn't work for me when using :make

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants