Tuesday, August 2, 2011

Re: swap files reverting my work erroneously

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

No comments:

Post a Comment