Thursday, January 29, 2015

Re: Question about file recovery

On Thursday, January 29, 2015 at 8:08:10 PM UTC-6, Joshua Luria wrote:
> Hi everybody,
>
> Recently my laptop crashed while I was editing a file and I wasn't able to use the CL recovery option, nor was there a swap file available. I did find a backup file of what I was working on in `~/.vim/backups/`.
>

Well, the command-line recovery option is only available if there is a swap file.

> Is there anything I can do with that file?
>

The backup is created whenever you save your file, and it contains the content of the file prior to the save. This lets you get it back if you messed up while editing. It isn't a backup for when your system crashes. That's what swap files are for (among other things).

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: