I am using nano 2.5.3 on OS X Yosemite, and I see commands at the bottom such as:
M-U Undo M-E Redo
So far, I have not been able to figure out which key or keys that M
is referring to. What would be M
on OS X?
To undo these changes, simply press Alt + U on your keyboard. The -u option should provide you with the necessary permissions to edit the file.
Nano's undo code is experimental. As you'll see from the nano manual (type " man nano " in a Terminal to read that), you'll need to start nano with the -u option (so " nano -u somefile. txt "), and then you can use Alt-U to undo.
Now when all the text has been selected, just press Ctrl+ K key combination to delete the selected text.
Hit ESC, then U (i.e. one after another, not together).
Note that UNDO is not supported in the default MacOS provided nano (V2.0.6) -- to get the latest version, simply do
brew install homebrew/dupes/nano
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With