Open chocolateboy opened 7 years ago
I can reproduce and I got 0 message. Still looking.
It use silent to execute substitute ref: http://vimdoc.sourceforge.net/htmldoc/various.html#:silent
Not sure why original author try to manage error by itsself. https://github.com/othree/eregex.vim/blob/master/plugin/eregex_e.vim#L4-L6 https://github.com/othree/eregex.vim/blob/master/plugin/eregex.vim#L844-L873
Vim: 8.0 OS: Linux (Arch) eregex: 950027d
Messages created with
echom(sg)
aren't displayed correctly or saved to the message history when using:%S/<pattern>/\=<expression>/
.echom-vimrc
steps to reproduce
native (
:substitute
)vim -u echom-vimrc test.txt
:%s/foo/\=Echo('bar')/
:messages
eregex (
:S
)vim -u echom-vimrc test.txt
:%S/foo/\=Echo('bar')/
:messages