CyberTek - the future at the present!

Archive for the 'nano linux' Category

nano editor, keyboard shortcuts and alternatives

Posted by: (Tue 21)
The notation for the abbreviations is as follows. The sequences identified by the symbol (^) are introduced using the Control key (Ctrl), or by pressing the Esc key twice. The sequences identified by the symbol Meta (M) can be entered using either the Esc, Alt or Meta, depending on the configuration of the keyboard. Also, pressing Esc twice and then typing the numbers from 000 to 255 will enter the character with the corresponding ASCII code. The following abbreviations are available in the main editor window. The alternative sequences are shown in parentheses:

^ G (F1) Display this help message
^ X (F2) Close the current file / Exit nano
^ O (F3) Saves the current file on disk
^ J (F4) Justify the current paragraph

^ R (F5) Insert another file into the current
^ W (F6) Search for a string or regular expression
^ Y (F7) Go to the previous screen
^ V (F8) Go to the next screen

^ K (F9) Cut the current line and store it in cutbuffer
^ U (F10) Paste cutbuffer in the current row
^ C (F11) Show the location of the cursor
^ T (F12) Invoke the spell checker, if available

M-\ (M |) goes to the first line of the file
-M / (M-?) Go to the last line of the file

^ _ (F13) (MG) goes to a line number and column
^ \ (F14) (MR) Replace a string or regular expression
^ ^ (F15) (MA) Mark text at the cursor position
MW (F16) Repeat the last search

M-^ (M-6) Copy the current line and store it in cutbuffer
Apply M-indent to the current row}
{M-indenting removes the current row
^ F Move forward a character
^ B Decreases the font
^ Space forward one word
M-Space Decreases the word a
^ P Move to previous line
^ N Move to next line

^ Go to beginning of current line
^ E Move to end of line
M-((M-9) to the beginning of the paragraph, then the previous paragraph
M-) (M-0) Go to the end of the paragraph, then the next paragraph
M-] Go to matching bracket
M-(M-_) Scrolls up one line without moving the cursor
-M + (M-=) Scroll down one line without moving the cursor
M-<(M-,) goes to the previous buffer
M-> (M-.) Go to next buffer

Inserts a character literally MV
^ I Insert a tab at the cursor position
^ M inserts a carriage return at the cursor position
^ D Delete the character under the cursor
^ H Delete the character left of cursor
MT Cut from cursor to end of file

MJ Justify the entire file
MD Count the number of words, lines and characters
^ L Refresh the current screen
^ Z Suspend the editor (if hibernation is enabled)

(MX) Command bar enables / disables
(MC) Always show cursor position enables / disables
(MO) Use of one more line for editing enables / disables
(MS) tabs to enable / disable
(MP) show white space enables / disables
(MY) Syntax colored enables / disables
(MH) Smart Home key enables / disables
(MI) Automatic indentation enables / disables
(MK) Cut to end of line enables / disables
(ML) Wrap enables / disables
(MQ) Convert tabs to spaces enable / disable
(MB) File Backup enables / disables
(MF) Multiple files enable / disable
(MM) Mouse Support enables / disables
(MN) No conversion from DOS formats / Mac enables / disables
(MZ) Suspension enables / disables
(M-$) Wrap soft enable / disable

Published in: linux , linux nano , shells , tips
Powered by CyberTek - Remote Support