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

125116Re: swap files reverting my work erroneously

Expand Messages
  • George Dinwiddie
    Aug 2 8:15 AM
    • 0 Attachment
      On 8/2/11 10:54 AM, Christian Brabandt wrote:
      > On Tue, August 2, 2011 3:27 pm, George Dinwiddie wrote:
      >> On 8/2/11 1:44 AM, Christian Brabandt wrote:
      >>> I have been thinking lately if it would be a good idea, if Vim would
      >>> only create a swap file, when it detects, that a change to the buffer
      >>> has been made. But not just when viewing a file.
      >>>
      >>> That is usually what happens a lot to me. I have 1 file open and in
      >>> another Vim instance I open the same file again only for viewing, so I
      >>> would like to avoid the "Attention" prompt.
      >>>
      >>> On the other hand I can see, that it is certainly useful, if you start
      >>> editing a file and immediately Vim warns you, that another Vim instance
      >>> is already editing that file. Hm, may be a new option swaponchange or
      >>> something?
      >>
      >> I'd just like to note that if you open the file in read-only mode (e.g.,
      >> with 'view<filename>'), then no swap file is created.
      >
      > Yeah, if just my fingers would remember ;)

      Yeah, I understand that. :) At least the "Attention" prompt gives an
      option for opening read-only.

      - George

      --
      ----------------------------------------------------------------------
      * George Dinwiddie * http://blog.gdinwiddie.com
      Software Development http://www.idiacomputing.com
      Consultant and Coach http://www.agilemaryland.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
    • Show all 25 messages in this topic