Reply to message «deleting current file», sent 17:39:44 15 January 2011, Saturday by eNG1Ne:
I don't know any keys that will delete the current file, but there are two
additional possibilities:
1. You somehow made vim crash while saving the file. On my system vim deletes
the old file and moves new to its place (by the way, does someone know how to
make vim modify existing file instead?).
2. Some plugin defined a mapping that deletes current file. You can try
searching output of `map', `imap' and other commands without arguments. Or try
to grep vim scripts for `\<delete(', for example with the following script:
:redir => scriptnames
:silent scriptnames
:redir END
:execute 'vimgrep /\<delete(/ '.join(map(split(scriptnames, '\n'),
'fnameescape(substitute(v:val, ''^ *\d\+: '', "", ""))'))
(last one is one line).
Original message:
> Well, it felt as though I'd discovered a command to do this :-
> { suddenly my vim session closed and there was no sign of the file I'd
> been working on. I managed to retrieve the lost file with testdisk,
> and have immediately made a back-up in a safe place ... but can
> someone tell me what strange combination of keys I managed to hit?
> just so I don't do it again <g>
signature.asc
Description: This is a digitally signed message part.
