On Wed, Sep 16, 2020 at 10:56:34AM -0700, Gary Johnson wrote:
> On 2020-09-16, Marius Gedminas wrote:
> > Vim thinks there's an error on line 16 of a file named
> > "E + Job created: 2020-09-16T06"
> >
> > How can I tell Vim that, as a Linux user, I don't believe in file names
> > with spaces in them? Or, as a compromise with Windows users, that file
> > names with multiple sequential spaces are _extremely_ unlikely?
>
> What I have done to avoid these sorts of problems is to put a rule
> early in 'errorformat' that matches the unwanted lines and tells Vim
> to ignore them. Here's an example of one such rule from my
> cppcheck.vim plugin.
>
> set errorformat^=%-G%#:0:\ information:%.%# " Ignores "*:0: information: ..."
Thank you for that suggestion!
set errorformat^=%+G%.\ \ %.%#
solved my problem.
Regards,
Marius Gedminas
--
Any sufficiently advanced technology is indistinguishable from a rigged demo.
- Andy Finkel, computer guy
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20200917065802.7abo4tyxgym3j2ek%40blynas.
Wednesday, September 16, 2020
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment