AT&T G3 manual Cursor

Models: G3

1 287
Download 287 pages 31.55 Kb
Page 265
Image 265

Basic vi

vi Editor

Function

Command

Operation

 

 

 

Cursor

spacebar

Move 1 character to the

movement

 

right

 

 

 

 

backspace

Move 1 character to the left

 

 

 

 

j

Jump down one line

 

 

 

 

k

Kick up one line

 

 

 

 

$

Go to the end of current line

 

 

 

 

^

Go to the begining of

 

 

current line

 

 

 

 

G

Go to the last line in file

 

 

 

 

1G

Go to the first line in file

 

 

 

 

w

Go to the next word

 

 

 

 

b

Go to the previous word

 

 

 

 

[-Enter

Move down one line

 

 

 

 

Ctrl-d

Scroll down ½ screen

 

 

 

 

Ctrl-u

Scroll up ½ screen

 

 

 

 

Ctrl-f

Scroll forward 1 page

 

 

 

 

Ctrl-b

Scroll backward 1 page

 

 

 

Insert Text

i

Turn on insert mode, insert

 

 

text to the left of cursor

 

 

 

 

a

Append text to the right of

 

 

cursor

 

 

 

 

o

Open a new line of text

 

 

below the current line

 

 

 

 

O

Opens a new line of text

 

 

above the current line

 

 

 

 

Esc

Turn off insert mode

 

 

 

Issue 2 April 1996 C-3

Page 265
Image 265
AT&T G3 manual Cursor