Tuesday, July 10, 2012

Re: histdel() and .viminfo

Beeyawned wrote:

> I tried to delete all search history using:
>
> :call histdel('/')
>
> And it seemed to worked because:
>
> :call his /
>
> returned nothing, and starting a search, then using up-arrow returned
> nothing.
>
> --BUT--
>
> It does not clear the search history kept in .viminfo.
>
> Should it?
>
> histdel({history} [, {item}]) *histdel()*
> Clear {history}, i.e. delete all its entries. See |hist-names|
> for the possible values of {history}.

When writing the viminfo file Vim merges the info from the current
process with what was already in the viminfo file. Thus the history you
see in the viminfo file is what was already there.

--
hundred-and-one symptoms of being an internet addict:
100. The most exciting sporting events you noticed during summer 1996
was Netscape vs. Microsoft.

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

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