Loading ...
Sorry, an error occurred while loading the content.

54603RE: viminfo, args and --remote

Expand Messages
  • Keith Roberts
    Oct 28, 2004
      >-----Original Message-----
      >From: Antoine J. Mechelynck [mailto:antoine.mechelynck@...]
      >Sent: Friday, October 15, 2004 3:47 AM
      >To: vim users' list; Antony Scriven
      >Subject: Re: viminfo, args and --remote
      >Antony Scriven <adscriven@...> wrote:
      >> Another reason to always load the buffer list would be that when you
      >> exit vim it writes the current buffer list to the viminfo
      >file. I have
      >> a very large and useful buffer list in my viminfo and I don't want
      >> that wiped out if I've started vim with an argument list. I
      >> use an autocommand to get around that. I suppose I could modify that
      >> to always load the buffer list when vim is started, but I'm used to
      >> the current behaviour (when not starting vim with --remote) at the
      >> moment.
      >> Antony
      >It oughtn't to be hard: I believe that
      > :autocmd VimEnter * rviminfo
      >would do the trick (but I haven't tested it). Or maybe that's
      >what you use already? IMO you should write a tip about it for
      >N.B.: OTOH, for those who like a "clean" buffer list, ":ls!"
      >followed (at the More or Hit-Enter prompt) by ":bw
      ><number>..." (i.e. bw with one or more buffer numbers) will
      >let you erase entries (forever, or at least until re-created,
      >so be careful what you wipe out); but the remaining ones will
      >keep their numbers until next restart. Note the difference
      >between ":ls!"
      >and ":ls" and between ":bw[ipeout]" and ":bd[elete]".
      >Best regards,

      IIUC, wasn't one of the reasons for avoiding the viminfo entirely (when
      filename(s) are specified in the command) so that the right-click "Edit
      with Vim" wouldn't interfere with an existing viminfo in that directory?

      Hmmm... Scanning thru starting.txt, under *startup-options* I see a
      command argument '-i', which looks like it was made for this purpose.
      So maybe a new argument '-I', which is identical to '-I', except that
      any filenames specified are *merged* with the buffer list from the
      existing viminfo?
    • Show all 12 messages in this topic