Ben Schmidt wrote:
On 13/06/11 10:52 PM, Charles Campbell wrote:
lith wrote:
Hi,
Is there a way to execute the :s or :/ command from a script without
adding any
patterns to the search history. I.e. is there a command like
:keephistory
(similar to :keepjumps) or any other solution that let's me execute
a command
without changing the search history?
For :s, use substitute().
For :/, use search().
Can't you just use histdel() after :s or :/ to get the unwanted entry
out of history?
Well, as histdel() had already been mentioned, I merely provided a few
more alternatives.
Regards,
Chip Campbell
--
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