Re: How do I remove the messages from :s and put
- Yegappan Lakshmanan wrote:
>If you know in advance how many lines will be added/modified then you
> I am using Vim 5.7. I am calling put from a script to add
> some lines to a buffer and :%s to substitute some pattern.
> These two actions result in messages like:
> 10 more lines
> 10 substitutions on 10 lines
> How do I tell put and :%s to not to display these messages?
can use the 'report' option:
:let report_save = &report
:let &report = report_save
HTH --Benji Fisher