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

Prevent the "Press ENTER" prompt with quickfix window disabled on long messages #73

Open
SilverEzhik opened this issue Jul 24, 2017 · 1 comment

Comments

@SilverEzhik
Copy link

It appears that when I have the quickfix window disabled, going over a line with a warning/error shows the "Press ENTER or type command to continue" whenever I am on this line. This makes interacting with that line in normal/visual modes very difficult, as any action that would put me on that line would result in the "Press ENTER" prompt appearing, which is pretty annoying.

@SilverEzhik
Copy link
Author

It appears that this is happening because I have :set ruler, which uses up some characters of the command line.

For now, a quick fix I found is to change line 135 of validator.vim/autoload/validator.vim from:

    let msg = msg[:expected].'...'

to:

    let msg = msg[:expected-5].'…'

This will make the validator messages use a tiny bit less space, while still keeping the ellipsis through a Unicode character.

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

1 participant