0

I used the command :Texplore to rename a file in vim's file explorer. I closed the buffer that read the old file name into memory, then opened the new file name using a new instance of vim only to find the contents of the file have been wiped.

  • Is there a way to recover the contents of this file?
  • I assumed that renaming a file in the vim file explorer simply abstracted mv SOURCE DEST, so why is the command R in vim's file explorer overwriting a file instead of renaming the file? In such a case shouldn't vim prompt before overwriting?

I should stick to unix file system tools next time to ensure safety when managing files

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.