On 2015-10-15 14:54:17 +0000, Gary Johnson said:
> To solve the particular problem of setting 'errorformat' without
> disturbing the global setting, you could either set the value for
> just the current buffer like this:
>
> setlocal errorformat=%f:%l:%m
I have tried that, but cexpr (and lexpr, too!) uses the global value of
errorformat.
> or you could save and restore the global value like this:
>
> let l:efm = &efm
> set errorformat=%f:%l:%m
> cexpr output
> let &efm = l:efm
Thanks, I hadn't thought about that. This seems like the way to go.
Nicola
--
--
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.
For more options, visit https://groups.google.com/d/optout.
Thursday, October 15, 2015
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment