vi - Vi Reference Card Modes Vi has two modes: insertion...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Vi Reference Card Modes Vi has two modes: insertion mode, and command mode. The editor begins in command mode, where cursor move- ment and text deletion and pasting occur. Insertion mode begins upon entering an insertion or change command. [ESC] returns the editor to command mode (where you can quit, for example by typing :q! ). Most commands execute as soon as you type them except for “colon” commands which execute when you press the return key. Quitting exit, saving changes :x quit (unless changes) :q quit (force, even if unsaved) :q! Inserting text insert before cursor, before line i , I append after cursor, after line a , A open new line after, line before o , O replace one char, many chars r , R Motion left, down, up, right h , j , k , l next word, blank delimited word w , W beginning of word, of blank delimited word b , B end of word, of blank delimited word e , E sentence back, forward ( , ) paragraph back, forward { , } beginning, end of line 0 , $ beginning, end of file 1G , G line n n G or : n forward, back to char c f c , F...
View Full Document

This note was uploaded on 08/08/2011 for the course PHZ 5156 taught by Professor Johnson,m during the Fall '08 term at University of Central Florida.

Ask a homework question - tutors are online