.B writeout
Write the current buffer to disk.
.TP
-.B justify
-Justify the current text.
-.TP
.B insert
Insert a file into the current buffer (or into a new buffer when multibuffer
is enabled).
.B searchagain
Repeat the last search command.
.TP
-.B up
-Move up in the editor or browser.
-.TP
-.B down
-Move down in the editor or browser.
-.TP
-.B left
-Move left in the editor or browser.
-.TP
-.B right
-Move right in the editor or browser.
+.B replace
+Interactively replace text within the current buffer.
.TP
.B cut
Cut the current line of text and store it.
.TP
+.B copytext
+Copy the currently marked text without deleting it.
+.TP
.B uncut
Copy the currently stored text into the current buffer position.
.TP
+.B mark
+Begin selecting text for cutting at the current position.
+.TP
.B curpos
Show the current line, column, word positions in the file.
.TP
+.B wordcount
+Count the number of words in the current buffer.
+.TP
.B speller
Invoke a spell checking program (or a linting program, if the current
syntax highlighting defines one).
.TP
-.B firstline
-Move to the first line of the file.
-.TP
-.B lastline
-Move to the last line of the file.
-.TP
-.B gotoline
-Move to a specific line (and column if specified).
-.TP
-.B replace
-Interactively replace text within the current buffer.
-.TP
-.B mark
-Begin selecting text for cutting or pasting at the current position.
+.B justify
+Justify the current text.
.TP
-.B copytext
-Copy the currently marked text without deleting it.
+.B fulljustify
+Justify the entire current file.
.TP
.B indent
Indent the currently marked text (shift to the right).
.B unindent
Un-indent the currently marked text (shift to the left).
.TP
+.B left
+Go left one position (in the editor or browser).
+.TP
+.B right
+Go right one position (in the editor or browser).
+.TP
+.B up
+Go one line up (in the editor or browser).
+.TP
+.B down
+Go one line down (in the editor or browser).
+.TP
+.B scrollup
+Scroll up one line of text from the current position.
+.TP
+.B scrolldown
+Scroll down one line of text from the current position.
+.TP
.B nextword
Move the cursor to the beginning of the next word.
.TP
.B endpara
Move the cursor to the end of the current paragraph.
.TP
+.B prevpage
+Go one screenful up.
+.TP
+.B nextpage
+Go one screenful down.
+.TP
+.B firstline
+Go to the first line of the file.
+.TP
+.B lastline
+Go to the last line of the file.
+.TP
+.B gotoline
+Move to a specific line (and column if specified).
+.TP
.B findbracket
Move the cursor to the matching bracket (brace, parenthesis, etc.) of the one
under the cursor.
.TP
-.B scrollup
-Scroll up one line of text from the current position.
-.TP
-.B scrolldown
-Scroll down one line of text from the current position.
-.TP
.B prevbuf
Switch to editing/viewing the previous buffer when using multibuffer mode.
.TP
.B delete
Delete the character under the cursor.
.TP
-.B fulljustify
-Justify the entire current file.
-.TP
-.B wordcount
-Count the number of words in the current buffer.
-.TP
-.B refresh
-Refresh the screen.
-.TP
.B undo
Undo the text action peformed (add text, delete text, etc).
.TP
.B redo
Redo the last undone action (i.e., undo an undo).
.TP
+.B refresh
+Refresh the screen.
+.TP
.B suspend
Suspend the editor (if the suspend function is enabled, see the
"suspendenable" entry below).
.B nosyntax
Toggle syntax highlighting.
.TP
-.B softwrap
-Toggle the displaying of overlong lines on multiple screen lines.
-.TP
.B smarthome
Toggle whether the smart home key function is enabled.
.TP
.B nowrap
Toggle whether long lines will be hard-wrapped to the next line.
.TP
+.B softwrap
+Toggle the displaying of overlong lines on multiple screen lines.
+.TP
.B tabstospaces
Toggle whether typed tabs will be converted to spaces.
.TP
s->scfunc = do_insertfile_void;
else if (!strcasecmp(input, "whereis"))
s->scfunc = do_search;
- else if (!strcasecmp(input, "up"))
- s->scfunc = do_up_void;
- else if (!strcasecmp(input, "down"))
- s->scfunc = do_down_void;
- else if (!strcasecmp(input, "pageup") ||
- !strcasecmp(input, "prevpage"))
- s->scfunc = do_page_up;
- else if (!strcasecmp(input, "pagedown") ||
- !strcasecmp(input, "nextpage"))
- s->scfunc = do_page_down;
+ else if (!strcasecmp(input, "searchagain") ||
+ !strcasecmp(input, "research"))
+ s->scfunc = do_research;
+ else if (!strcasecmp(input, "replace"))
+ s->scfunc = do_replace;
else if (!strcasecmp(input, "cut"))
s->scfunc = do_cut_text_void;
+ else if (!strcasecmp(input, "copytext"))
+ s->scfunc = do_copy_text;
else if (!strcasecmp(input, "uncut"))
s->scfunc = do_uncut_text;
+ else if (!strcasecmp(input, "mark"))
+ s->scfunc = do_mark;
else if (!strcasecmp(input, "tospell") ||
!strcasecmp(input, "speller"))
s->scfunc = do_spell;
else if (!strcasecmp(input, "curpos") ||
!strcasecmp(input, "cursorpos"))
s->scfunc = do_cursorpos_void;
- else if (!strcasecmp(input, "firstline"))
- s->scfunc = do_first_line;
- else if (!strcasecmp(input, "lastline"))
- s->scfunc = do_last_line;
else if (!strcasecmp(input, "gotoline"))
s->scfunc = do_gotolinecolumn_void;
- else if (!strcasecmp(input, "replace"))
- s->scfunc = do_replace;
#ifndef DISABLE_JUSTIFY
else if (!strcasecmp(input, "justify"))
s->scfunc = do_justify_void;
+ else if (!strcasecmp(input, "fulljustify"))
+ s->scfunc = do_full_justify;
else if (!strcasecmp(input, "beginpara"))
s->scfunc = do_para_begin_void;
else if (!strcasecmp(input, "endpara"))
s->scfunc = do_para_end_void;
- else if (!strcasecmp(input, "fulljustify"))
- s->scfunc = do_full_justify;
#endif
#ifndef NANO_TINY
- else if (!strcasecmp(input, "mark"))
- s->scfunc = do_mark;
- else if (!strcasecmp(input, "searchagain") ||
- !strcasecmp(input, "research"))
- s->scfunc = do_research;
- else if (!strcasecmp(input, "copytext"))
- s->scfunc = do_copy_text;
else if (!strcasecmp(input, "indent"))
s->scfunc = do_indent_void;
else if (!strcasecmp(input, "unindent"))
s->scfunc = do_home;
else if (!strcasecmp(input, "end"))
s->scfunc = do_end;
+ else if (!strcasecmp(input, "pageup") ||
+ !strcasecmp(input, "prevpage"))
+ s->scfunc = do_page_up;
+ else if (!strcasecmp(input, "pagedown") ||
+ !strcasecmp(input, "nextpage"))
+ s->scfunc = do_page_down;
+ else if (!strcasecmp(input, "firstline"))
+ s->scfunc = do_first_line;
+ else if (!strcasecmp(input, "lastline"))
+ s->scfunc = do_last_line;
#ifndef DISABLE_MULTIBUFFER
else if (!strcasecmp(input, "prevbuf"))
s->scfunc = switch_to_prev_buffer_void;