3 ms·
Can you tell me how to exit nano without writing changes? Every time some silly default server kicks me into nano I'm absolutely lost and ctrl+c doesn't give yo
by lucb1e 6y ago
Can you tell me how to exit nano without writing changes? Every time some silly default server kicks me into nano I'm absolutely lost and ctrl+c doesn't give you help text like in vim iirc. (Not kidding)
- calmoo 6y agoIt'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