Thursday, September 9, 2010

Re: Dealing with viminfo overwriting? -> :set vi=n..

On Sep 8, 10:45 am, "Benjamin R. Haskell" <v...@benizi.com> wrote:
>
> Interesting idea.  Kind-of solves half of the problem (prevents losing
> .viminfo data), but doesn't seem to lend itself to the other part of
> what I want (contents of all .viminfos' command histories available from
> everywhere).
>

I see :help :wviminfo says "the information in the file is first read
in to make a merge between old and new info" but from the preceding
text it looks like the extent of the "merge" only includes items that
are not included in both files. Maybe you can use :wviminfo
and :rviminfo, with appropriate autocmds (FocusGained/FocusLost?) and
parsing/combining of the history section of the .viminfo files to
achieve something close to your goals.

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