I am comforable with using history of edited files that is kept in viminfo, the one that sets the limit in the first setting of set viminfo='100,... variable.

After I've started using mutt as email client and using vim as its editor, and that makes multiple temporary files created in /tmp/dir. These are of no interest and spoil the history of :browse old. I am trying to figure out the way of excluding those so they could be skipped or at least wiped in some hook procedure. They all can be easily identified by /tmp/mutt-.* path regex.

Is there some natural/doable way to implement this?


I guess I found a good solution for my use case. -i option allows to specify alternative locoation of viminfo file. So I can specifey vim -i /tmp/blackhole for cases where I do not care of file history. In my case that is specifying

set editor = "vim -i /tmp/idontcare"

in my .muttrc

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.