3 ms·
It's CTRL+X and then N to not save changes
by calmoo 6y ago
It's CTRL+X and then N to not save changes
- lucb1e 6y agoThanks! Gonna try to remember that combo.
- Smaug123 6y agoIt appears in the table of commands at the bottom of the screen by default, doesn't it?
- lucb1e 6y agoI don't remember exactly, I just remember having a hard time exiting nano but not vim (also not before I knew vim: it just tells you what to do when you press the usual ctrl+c). From the sibling comment to yours, it says ^X which probably wasn't clear to me is supposed to be ctrl instead of shift. With hindsight it seems quite obvious, I'll admit.
- mkl 6y agoYou don't even need to remember it. At the bottom it lists keyboard shortcuts, and on the left is "^X Exit". When you press it with a modified file, it gives you: Save modified buffer? Y Yes N No ^C Cancel