Please make gVim store ones history when one has multiple instances
open.

I am not sure I understand, what exactly you want. However I believe,
what you want can already be achieved using the :wviminfo command.

See for example here:
http://vimhelp.appspot.com/vim_faq.txt.html#faq-17.3

That's not the same thing. IIRC when you're running multiple instances
of Vim, on exit you'll lose the command history of one Vim process (the
one exited first I would guess?).

I've found this quite annoying because I've been spoiled by the Z shell
which includes special logic to deal with real time sharing of command
history between multiple shell processes.

It would be awesome if Vim had something similar, or at least would
attempt to merge or just concatenate both histories when you exit Vim.

Maybe I responded to soon -- I'm sure that Vim sometimes loses parts of my command history, but I'm not sure about the exact circumstances, except that it involves multiple instances of Vim running concurrently.

The documentation for :wviminfo says "Write to viminfo file... *The information in the file is first read in to make a merge between old and new info*". I guess that by default :rviminfo is only executed when Vim starts and :wviminfo is only executed when Vim quits?

Maybe some automatic command magic that executes :rviminfo and :wviminfo more frequently (e.g. on FocusLost and FocusGained) would do the trick...

 - Peter

--
You received this message from the "vim_dev" 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

Raspunde prin e-mail lui