Skip to content

:enew discards my changes #253

@12425

Description

@12425

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:

  1. Open Vim and input anything (after that, the buffer is modified).
  2. :nnoremap <F1> :enew<CR>
  3. :CtrlP
  4. Press <F1>
  5. Where is the modified buffer? Where is the swap file?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions