Nano/Guide

This guide nano}}, and is meant to be very concise. For more information about check out: https://www.nano-editor.org.

Opening and creating files
To open or create files, type:

Nano is a modeless editor: start typing immediately to insert text. To edit a configuration file, such as, for example:

Saving and exiting
To save the changes, press +. To exit, type +.

Trying to exit with unsaved changes, it will ask to save. Press to discard changes. Press to save - it will then ask for a filename, type it in and press. If save is confirmed accidentally, cancel by pressing +  when prompted for a filename.

Cutting and pasting
To cut a single line, use +  (hold down  and then press ). The line disappears. To paste it, move the cursor to where to paste, and punch +. The line reappears.

To move multiple lines, simply cut them with several +  in a row, then paste with a single  +.

For more fine-grained control, mark the text: move the cursor to the beginning of what should be cut, hit +  (or  + ). Now move the cursor to the end of the text to be cut: the marked text gets highlighted (to cancel at this point, simply hit +  again). Press +  to cut the marked text. Use +  to paste.

Searching for text
Searching for a string is easy, but think "WhereIs" instead of "Search". Simply hit +, type in the search string, and press. To search for the same string again, hit +.

More options
Read for options.

Thanks to kiyose and quazion from.