NanoHowto
1397
Comment: repaired broken icon
|
2010
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: The help screen explains most of the commands very well. Press Control-G to read it!
[http://www.nano-editor.org/ Nano site] [http://www.nano-editor.org/dist/v1.2/nano.html Nano manual] note: How does Justify/Unjustify work?
WriteOut (control-O) - save Links
NanoHowto (last edited 2008-08-06 16:38:30 by localhost)