Saturday, January 29, 2011

Re: [VIM]: Help with constructing error format string....

Excerpts from vijay's message of Sat Jan 29 09:02:10 +0100 2011:
> set efm=%W\[[0-9A-Z]*]\\s%#\\S%#\\s%#\\S%#\\s%#%f\\s%#%l\\s%#[0-9]s%#
> %m

You need scanf like expressions. Don't ask me why - this seems to work:

set efm=%*[^\ ]%*[\ ]%*[^\ ]%*[\ ]%*[^\ ]%*[\ ]%*[^\ ]%*[\ ]%f\ %l%m

match no spaces:
%*[^\ ]
match spaces:
%*[\ ]

repeat until path is expected...

Marc Weber

--
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

No comments: