Useful vi commands – Alcatel Carrier Internetworking Solutions 6648 User Manual

Page 608

Advertising
background image

Useful VI Commands

page -2

OmniSwitch Troubleshooting Guide

September 2005

Useful VI Commands

The following are some useful VI commands:

u - undo the last command.

CTL/L -reprint current screen.

CTL/F-pages forward one screen.

CTL/B-pages back one screen.

j -moves cursor down one line.

k -moves cursor up one line.

h - moves cursor back one character.

l - moves cursor forward one character.

Enter key - moves cursor to the beginning of next line.

0 -zero moves cursor to beginning of current line.

$ -- moves cursor to end of current line.

space bar - moves cursor forward one character.

w-moves cursor forward to the next word.

e - moves cursor backward to the end of previous word.

b - moves cursor backward to the beginning of the previous word.

/ pattern - this will search for the entered pattern.

n - this will repeat the last search (/).

s - deletes current character and enters insertion mode.

J - Joins the current line with the next line.

a - append test after cursor. Use Esc key to terminate.

A - Append test at end of line. Use Esc key to terminate.

i - Inserts text before the cursor. Use Esc key to terminate.

I - Inserts text at the beginning of the line. Use Esc key to terminate.

o -Opens new line below current line for text insertion. Use Esc key to terminate.

O - Opens new line above the current line for text insertion. Use Esc key to terminate.

Delete key - Overwrites last character during text insertion.

Esc key -Stops text insertion.

x - Deletes current character.

dd-Deletes the current line.

Advertising
This manual is related to the following products: