CÁC BÀI THỰC HÀNH LINUX - Trang 20

- 19-

<D>

Deletes to end of line

<x>

Deletes character under cursor

<c><w>

Changes word

<c><c>

Changes line

<C>

Changes to end of line

<R>

Replaces character under cursor

<J>

Joins lines together

<e>

Moves to end of word

<w>

Moves to next word

<$>

Moves to end of line

<l>

Moves one space right

<k>

Moves one line up

<j>

Moves one line down

<h>

Moves one space left

<f><x>

Moves cursor to first occurrence of x

<F><x>

Moves cursor to last occurrence of x

<;>

Repeats the last f/F command

number<|>

Moves cursor to specified column number

<H>

Moves cursor to top line on-screen (not top line of file)

<L>

Moves cursor to bottom line on-screen

<M>

Moves cursor to middle line on-screen

<G>

Moves cursor to bottom line of file

number<G>

Moves cursor to specified line number

(same as<ESC>:number)

<^>

Moves to beginning of line

<m>x

Marks current position with letter x

<Ctrl-d>

Scrolls for ward one half of the screen

<Ctrl-u>

Scrolls backward one half of the screen

<Ctrl-f>

Scrolls for ward one screen

<Ctrl-b>

Scrolls backward one screen

<Ctrl-l>

Redraws the screen

<Ctrl-G>

Shows the filename, current line, and column number

<z><z>

Redraws the screen with current line in middle of screen

<y><y>

Yanks entire line into buffer

<p>

Puts contents of buffer below cursor

<P>

Puts contents of buffer above cursor

x“[number]”<yy> Yanks the indicated number of lines into the buffer named x

(x can be any single character a–z)