Retrive old inserts

22 views
Skip to first unread message

Alessandro Falcione

unread,
Feb 15, 2020, 10:19:29 AM2/15/20
to vim_use
I wrote something in a file and then accidentally removed the file, is there any possibility to retrive what I've inserted in that file?

Richard Mitchell

unread,
Feb 15, 2020, 10:47:13 AM2/15/20
to vim_use
does your .vimrc file include:
  set backup
and possibly
  set backupdir=SOMEPATH
?

If so, your chances are good.

Bram Moolenaar

unread,
Feb 15, 2020, 5:08:35 PM2/15/20
to vim...@googlegroups.com

Alessandro Falcione wrote:

> I wrote something in a file and then accidentally removed the file, is
> there any possibility to retrive what I've inserted in that file?

Check for any backup file (ending in ~), in the directory of the ile or
'backupdir'.

Check for an undo file, ending in .un~.

--
hundred-and-one symptoms of being an internet addict:
87. Everyone you know asks why your phone line is always busy ...and
you tell them to send an e-mail.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages