I lost all my changes in an unsaved buffer and the swap file was even gone.
I have a key map for <F1>: :enew
When I was in CtrlP, I accidently pressed it and the buffer was gone!
You can reproduce it as below:
- Open Vim and input anything (after that, the buffer is modified).
:nnoremap <F1> :enew<CR>
:CtrlP
- Press
<F1>
- Where is the modified buffer? Where is the swap file?
I lost all my changes in an unsaved buffer and the swap file was even gone.
I have a key map for
<F1>::enewWhen I was in
CtrlP, I accidently pressed it and the buffer was gone!You can reproduce it as below:
:nnoremap <F1> :enew<CR>:CtrlP<F1>