Advertisement
Guest User

Nano keyboard shortcuts

a guest
Jul 26th, 2013
504
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.82 KB | None | 0 0
  1. Main nano help text
  2.  
  3. The nano editor is designed to emulate the functionality and ease-of-use of
  4. the UW Pico text editor. There are four main sections of the editor. The top
  5. line shows the program version, the current filename being edited, and whether
  6. or not the file has been modified. Next is the main editor window showing the
  7. file being edited. The status line is the third line from the bottom and
  8. shows important messages. The bottom two lines show the most commonly used
  9. shortcuts in the editor.
  10.  
  11. The notation for shortcuts is as follows: Control-key sequences are notated
  12. with a caret (^) symbol and can be entered either by using the Control (Ctrl)
  13. key or pressing the Escape (Esc) key twice. Escape-key sequences are notated
  14. with the Meta (M-) symbol and can be entered using either the Esc, Alt, or
  15. Meta key depending on your keyboard setup. Also, pressing Esc twice and then
  16. typing a three-digit decimal number from 000 to 255 will enter the character
  17. with the corresponding value. The following keystrokes are available in the
  18. main editor window. Alternative keys are shown in parentheses:
  19.  
  20. ^G (F1) Display this help text
  21. ^X (F2) Close the current file buffer / Exit from nano
  22. ^O (F3) Write the current file to disk
  23. ^J (F4) Justify the current paragraph
  24.  
  25. ^R (F5) Insert another file into the current one
  26. ^W (F6) Search for a string or a regular expression
  27. ^Y (F7) Go to previous screen
  28. ^V (F8) Go to next screen
  29.  
  30. ^K (F9) Cut the current line and store it in the cutbuffer
  31. ^U (F10) Uncut from the cutbuffer into the current line
  32. ^C (F11) Display the position of the cursor
  33. ^T (F12) Invoke the spell checker, if available
  34.  
  35. M-\ (M-|) Go to the first line of the file
  36. M-/ (M-?) Go to the last line of the file
  37.  
  38. ^_ (F13) (M-G) Go to line and column number
  39. ^\ (F14) (M-R) Replace a string or a regular expression
  40. ^^ (F15) (M-A) Mark text at the cursor position
  41. M-W (F16) Repeat last search
  42.  
  43. M-^ (M-6) Copy the current line and store it in the cutbuffer
  44. M-} Indent the current line
  45. M-{ Unindent the current line
  46. ^F Go forward one character
  47. ^B Go back one character
  48. ^Space Go forward one word
  49. M-Space Go back one word
  50. ^P Go to previous line
  51. ^N Go to next line
  52.  
  53. ^A Go to beginning of current line
  54. ^E Go to end of current line
  55. M-( (M-9) Go to beginning of paragraph; then of previous paragraph
  56. M-) (M-0) Go just beyond end of paragraph; then of next paragraph
  57. M-] Go to the matching bracket
  58. M-- (M-_) Scroll up one line without scrolling the cursor
  59. M-+ (M-=) Scroll down one line without scrolling the cursor
  60. M-< (M-,) Switch to the previous file buffer
  61. M-> (M-.) Switch to the next file buffer
  62.  
  63. M-V Insert the next keystroke verbatim
  64. ^I Insert a tab at the cursor position
  65. ^M Insert a newline at the cursor position
  66. ^D Delete the character under the cursor
  67. ^H Delete the character to the left of the cursor
  68. M-T Cut from the cursor position to the end of the file
  69.  
  70. M-J Justify the entire file
  71. M-D Count the number of words, lines, and characters
  72. ^L Refresh (redraw) the current screen
  73. ^Z Suspend the editor (if suspend is enabled)
  74.  
  75. (M-X) Help mode enable/disable
  76. (M-C) Constant cursor position display enable/disable
  77. (M-O) Use of one more line for editing enable/disable
  78. (M-S) Smooth scrolling enable/disable
  79. (M-P) Whitespace display enable/disable
  80. (M-Y) Color syntax highlighting enable/disable
  81. (M-H) Smart home key enable/disable
  82. (M-I) Auto indent enable/disable
  83. (M-K) Cut to end enable/disable
  84. (M-L) Long line wrapping enable/disable
  85. (M-Q) Conversion of typed tabs to spaces enable/disable
  86. (M-B) Backup files enable/disable
  87. (M-F) Multiple file buffers enable/disable
  88. (M-M) Mouse support enable/disable
  89. (M-N) No conversion from DOS/Mac format enable/disable
  90. (M-Z) Suspension enable/disable
  91. (M-$) Soft line wrapping enable/disable
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement