Text Editor Command and Edit Shortcuts, Study notes of Computer Science

A list of text editor commands and shortcuts for navigation, movement, editing, and searching. These commands can be used to efficiently navigate and edit text in a document, making it an essential resource for students, writers, and professionals.

Typology: Study notes

Pre 2010

Uploaded on 08/18/2009

koofers-user-ix2
koofers-user-ix2 🇺🇸

3

(2)

10 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
More vi
Here are some additional movement commands:
Name Command Description
move word w, W, b, B Forward or backward by word
end of word e, E Move to end of word
sentence ), ( Beginning of next or current sentence
paragraph }, { Beginning of next or current paragraph
lines 0, $ Beginning or end of current line
home HTop line of screen
last LLast line of screen
middle MMiddle line of screen
Scroll CTRL-F, CTRL-B Scroll forward, backward one screen
Scroll CTRL-D, CTRL-U Scroll down, up one-half screen
Scroll CTRL-E, CTRL-Y Show one more line at bottom, top of window
Redraw CTRL-L, CTRL-R Redraw screen (without scrolling)
Search /text Search forward for text
Search nRepeat previous search
Search NRepeat search in opposite direction
Search /Repeat forward search
Search ?Repeat previous search backward
Search ?text Search backward for text
Match %Find match of current parenthesis, brace or
bracket
Line
Number
CTRL-G Display current line number
Line
Number
nGMove to line number n
Line
Number
GMove to last line in file
Line
Number
:nMove to line number n
Marking mxMark current position with character x
Marking `xMove to cursor mark x
Marking 'xMove to start of line containing x
Here are some additional edit commands:
Name Command Description
Change text cw, cl Change word, change line (finish with ESC)
Replace rx, Rtext Replace character or text with typing (finish
with ESC)
Repeat .Repeat last change
Copy, yank yy Copy current line into buffer
Copy, yank #YCopy # lines into a buffer (# maybe nothing)
Paste p, P Insert buffer contents after or before cursor
Copy ye, yl, y} Copy to end of word, line, or paragraph
Join JJoin two lines
Dr. Tracy Bradley Maples
pf2

Partial preview of the text

Download Text Editor Command and Edit Shortcuts and more Study notes Computer Science in PDF only on Docsity!

More vi

Here are some additional movement commands:

Name Command Description move word w, W, b, B Forward or backward by word end of word e, E Move to end of word sentence ), ( Beginning of next or current sentence paragraph }, { Beginning of next or current paragraph lines 0, $ Beginning or end of current line home H Top line of screen last L Last line of screen middle M Middle line of screen Scroll CTRL-F, CTRL-B Scroll forward, backward one screen Scroll CTRL-D, CTRL-U Scroll down, up one-half screen Scroll CTRL-E, CTRL-Y Show one more line at bottom, top of window Redraw CTRL-L, CTRL-R Redraw screen (without scrolling) Search / text Search forward for text Search n Repeat previous search Search N Repeat search in opposite direction Search / Repeat forward search Search? Repeat previous search backward Search? text Search backward for text Match % Find match of current parenthesis, brace or bracket Line Number CTRL-G Display current line number Line Number n G Move to line number n Line Number G Move to last line in file Line Number : n Move to line number n Marking m x Mark current position with character x Marking ` x Move to cursor mark x Marking ' x Move to start of line containing x

Here are some additional edit commands:

Name Command Description

Change text cw, cl Change word, change line (finish with ESC)

Replace r x, R text Replace character or text with typing (finish with ESC) Repeat. Repeat last change Copy, yank yy Copy current line into buffer Copy, yank # Y Copy # lines into a buffer ( # maybe nothing) Paste p, P Insert buffer contents after or before cursor Copy ye, yl, y} Copy to end of word, line, or paragraph Join J Join two lines Dr. Tracy Bradley Maples

Delete D Delete remainder of line Dr. Tracy Bradley Maples