Quick Reference for the Pico Text Editor

Pico is a simple text editor that displays a list of menu commands for manipulating text at the bottom of the screen. Most of the commands combine the control character with another character from the keyboard. Editing can be accomplished by entering text, navigating with the arrow keys and/or menu commands and manipulating text with the menu commands. Use the following command to edit the file called filename with the pico editor:

pico filename

The following pico commands are grouped by function

Commands to move around in your document

[Ctrl]-f or right arrowmoves Forward a character
[Ctrl]-b or left arrowmoves Backward a character
[Ctrl]-p or up arrowmoves to the Previous line
[Ctrl]-n or down arrowmoves to the Next line
[Ctrl]-amoves to the beginning of the current line
[Ctrl]-emoves to the End of the current line
[Ctrl]-vmoves forward a page of text
[Ctrl]-ymoves backward a page of text
[Ctrl]-wsearches forward ignoring case
[Ctrl]-W [Return]searches again for the same string

Commands to delete or move text

[Ctrl]-ddeletes the character under the cursor
[Delete] keydeletes the character before the cursor
[Ctrl]-kdeletes (Kills) the entire line at the cursor position or deletes a selected block of text
[Ctrl]-uUndeletes the last deleted line[s] at cursor position or undeletes a selected block of text
[Ctrl]-^turns on selection for highlighting large blocks of text. Executing [Ctrl]-^ again before any editing action will turn the selection off.

Note: [Ctrl]-k followed by [Ctrl]-u can be used to move a block of text from one location to another

Commands to exit and save files

[Ctrl]-owrites out a file without exiting (defaults to current file name)
[Ctrl]-xexits Pico and prompts you to save if buffer has not been saved

Other formatting commands

[Ctrl]-iinserts a tab at current cursor position
[Ctrl]-jformats (justifies) the current paragraph
[Ctrl]-rinserts an external file at the current cursor position
[Ctrl]-tinvokes the spell checker

Information commands

[Ctrl]-creports the current cursor position
[Ctrl]-gdisplays Pico help
[Ctrl]-lclears information line (lowercase L not digit 1)

Updated: 06/17/2020 01:09PM