Hacker News new | past | comments | ask | show | jobs | submit login

If you're going to use buffers (which you should), make sure to

    set hidden
otherwise you'll get an error message when you try to swap to a different buffers when you have unsaved changes in your current buffer,

Great for helping lose unsaved changes, too.

But the whole point of 'set hidden' is that the current buffer is hidden (rather than unloaded/closed) when you switch to a different one, so there's no prospect of losing unsaved changes -- unless you :qa! without checking your buffer list first.

You still get a warning if you try to close without saving

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact