NanoHowto

Differences between revisions 2 and 3
Revision 2 as of 2005-07-06 07:46:26
Size: 1397
Editor: d154-5-117-228
Comment: repaired broken icon
Revision 3 as of 2005-08-04 20:24:19
Size: 2010
Editor: c-67-171-159-205
Comment: It's better to teach the conventions of the displayed commands.
Deletions are marked like this. Additions are marked like this.
Line 15: Line 15:
Nano is a text editor that is not flashy or fancy. It is a clone of the pico editor which is shipped with the pine email client. Nano is nice to just make quick edits in text files, but most do not prefer it to do heavy editing. Other editor's such as "emacs", "vim", "gedit" all offer coloring of text and auto formating. Nano gets the job done without any distraction's. Nano is a text editor that is not flashy or fancy. It is a clone of the pico editor which is shipped with the pine email client. Nano is nice to just make quick edits in text files, but most do not prefer it to do heavy editing. Other editor's such as "emacs", "vim", "gedit" all offer coloring of text and auto formating. Nano gets the job done without any distractions.
Line 29: Line 29:
To save in nano you must use certain key strokes. When you see {{{ctrl/o}}} it means to hit the control key and the "o" key at the same time. The basic controls for nano are shown on the bottom of the screen. The '''^''' mark means to hold the control key and press the letter following it. For example, ^X (quit) means hold control and press X. To see more nano commands, hit '''control-G'''. On the help screen, M- before a letter means to hold down Meta or Alt and press it. So M-M (enable mouse support) means hold alt and press M. nano uses some odd conventions:
 * '''WriteOut''' (control-O) - save
 * '''Cur Pos''' (control-C) - tells you what line and letter the cursor is on
 * '''Read File''' (control-R) - inserts the contents of another file
  * pressing Alt-F after control-R behaves just like an Open command in other text editors.
 * '''Where Is''' (control-W) - searches for some text in the file
Line 31: Line 36:
To write to a file, or to save use: {{{ctrl/o}}}

To exit nano: {{{ctrl/x}}}

To search the current file: {{{ctrl/w}}}

Those are the three main commands you will use.
The help screen explains most of the commands very well. Press Control-G to read it!
Line 43: Line 42:

`note`: How does Justify/Unjustify work?

UserDocumentation

    Draft

Nano Howto

Introduction

attachment:IconsPage/IconGNOMETerminal.png

This page will explain simple things with nano, and will give links to off site help.

What is nano

Nano is a text editor that is not flashy or fancy. It is a clone of the pico editor which is shipped with the pine email client. Nano is nice to just make quick edits in text files, but most do not prefer it to do heavy editing. Other editor's such as "emacs", "vim", "gedit" all offer coloring of text and auto formating. Nano gets the job done without any distractions.

How to start nano

To just start a regular nano session.

    bash:~$ nano -w <nameoffile>

This will open <nameoffile> into a editing window. You can create new files like this or edit existing files. The "-w" is present to disable wordwrapping, which can cause problems in some types of files.

How to use nano

The basic controls for nano are shown on the bottom of the screen. The ''' mark means to hold the control key and press the letter following it. For example, X (quit) means hold control and press X. To see more nano commands, hit control-G. On the help screen, M- before a letter means to hold down Meta or Alt and press it. So M-M (enable mouse support) means hold alt and press M. nano uses some odd conventions:

  • WriteOut (control-O) - save

  • Cur Pos (control-C) - tells you what line and letter the cursor is on

  • Read File (control-R) - inserts the contents of another file

    • pressing Alt-F after control-R behaves just like an Open command in other text editors.
  • Where Is (control-W) - searches for some text in the file

The help screen explains most of the commands very well. Press Control-G to read it!

note: How does Justify/Unjustify work?

UserDocumentation

NanoHowto (last edited 2008-08-06 16:38:30 by localhost)