2

Scenario:

I open a file, I edit it. After I began editing, the file is modified by another program. Finally, I save the file.

In that case, Vim would provide that helpful warning:

WARNING: The file has been changed since reading it

Do you really want to write to it (y/n)?

But Textmate will overwrite the file silently, which can result in unpleasant data loss (in my case, a de facto revert on Git). How can I prevent that?

1
  • You should try adding this question on Superuser.com it's much better suited to these types of questions.
    – Tom
    Dec 1, 2009 at 17:14

1 Answer 1

1

Simple fix: change focus to another application before clicking save, if you expect this behavior to happen often on a particular file. If you change focus and come back, TextMate will detect the change.

Not sure why you have programs modifying files while you're working on them, but...there you have it.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .