Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What to do with read-only file? diff? #16

Open
ddickstein opened this issue Oct 30, 2017 · 1 comment
Open

What to do with read-only file? diff? #16

ddickstein opened this issue Oct 30, 2017 · 1 comment
Labels

Comments

@ddickstein
Copy link

In cases where vim crashes and a newer swapfile exists, a readonly version of the file opens. I understand this is by design. What if I want to see the swapfile, or override the readonly version with the new one? Ideally whenever this happens I'd like 2 panes to open, one with the swapfile and one with the old version, and be able to do a side-by-side comparison and pick between them. What's the best way to achieve this?

@gioele gioele changed the title [question] What to do with read-only file? What to do with read-only file? diff? Jul 25, 2018
@jflorian
Copy link

Seems like the appropriate thing would be to call :recover. Almost everything I edit these days is under Git so I can sort of cheat and just write the recovery out, exit and use git diff to see if I really want it or not. Vim probably can do some of this on its own, but I use what I know. 🤷‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants