About bearparc

A software development blog for the qualified developer

Blogroll

Application Server (24)
Business Intelligence (13)
Business Logic Layer (6)
C (2)
C++ (3)
CMMI (4)
Data Mining (3)
DataMart (11)
DataWarehouse (11)
ETL (7)
FAQ – Troubleshooting (8)
Framework (4)
Hardware (10)
Informatica Powercenter (6)
Investition (2)
J2ee (8)
Java (6)
JBoss (1)
Liferay (11)
LINUX (11)
objektorientiertes Design (2)
OLAP (7)
Oracle (48)
Projektmanagement (5)
Prozeßmodelle (4)
Software (33)
SQL (24)
Uncategorized (31)
Web 2.0 (5)
Weblogic (17)
wordpress (5)
XML (2)

WP-Cumulus by Roy Tanck and Luke Morton requires Flash Player 9 or better.

memory_target ¤ specified ¤ this ¤ ora-00845 ¤ linux ¤ resource ¤ with ¤ 8024402c ¤ zeilen ¤ busy ¤ oracle ¤ ora-00054: ¤ acquire ¤ informatica ¤ system ¤ nowait ¤ workflow ¤ supported ¤ to_integer ¤
ora-00845 ¤ ora-00845: memory_target not supported on this system ¤ informatica workflow ¤ ora-00845 linux ¤ ora-00054 ¤ ora-00054: resource busy and acquire with nowait specified ¤

www.brokerbase.ch network

Search



Add to Technorati Favorites Blogverzeichnis - Blog Verzeichnis bloggerei.de Deutsches Blog Verzeichnis blogoscoop Add to Google http://www.wikio.de
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

« | Main | »

vi editing mode quick reference

By Martin | October 30, 2009

Shortcut Description

Switching to COMMAND Mode:

ESC                            Switch to command mode.

Commands for Entering INPUT Mode:

i                                    Insert before cursor.

a                                   Insert after cursor.

I                                   Insert at the beginning of line.

A                                 Insert at the end of line.

c                                 Change text of a movement command (see below).

C                                 Change text to the end of line (equivalent to c$).

cc or S                      Change current line (equivalent to 0c$).

s                                  Delete a single character under the cursor and enter input mode (equivalent to c[SPACE]).

r                                  Replaces a single character under the cursor (without leaving command mode).

R                                 Replaces characters under cursor.

v                                 Edit (and execute) the current command in the text editor. (an editor defined in $VISUAL or $EDITOR variables, or vi

Basic Movement Commands (in command mode):

h                                 Move one character right.

l                                  Move one character left.

w                                Move one word or token right.

b                                 Move one word or token left.

W                                Move one non-blank word right.

B                                 Move one non-blank word left.

e                                 Move to the end of the current word.

E                                 Move to the end of the current non-blank word.

0                                 Move to the beginning of line

^                                 Move to the first non-blank character of line.

$                                 Move to the end of line.

%                                 Move to the corresponding opening/closing bracket.

Character Finding Commands (these are also Movement Commands):

fc                                 Move right to the next occurance of char c.

Fc                                Move left to the previous occurance of c.

tc                                 Move right to the next occurance of c, then one char backward.

Tc                                Move left to the previous occurance of c, then one char forward.

;                                   Redo the last character finding command.

,                                   Redo the last character finding command in opposite direction.

|                                  Move to the n-th column (you may specify the argument n by typing it on number keys, for example, 20)

Deletion Commands:

x                                 Delete a single character under the cursor.

X                                 Delete a character before the cursor.

d                                 Delete text of a movement command (see above).

D                                 Delete to the end of the line (equivalent to d$).

dd                              Delete current line (equivalent to 0d$).

CTRL-w                   Delete the previous word.

CTRL-u                    Delete from the cursor to the beginning of line.

Undo, Redo and Copy/Paste Commands:

u                                 Undo previous text modification.

U                                Undo all previous text modifications.

.                                 Redo the last text modification.

y                                 Yank a movement into buffer (copy).

yy                              Yank the whole line.

p                                 Insert the yanked text at the cursor.

P                                 Insert the yanked text before the cursor.

Commands for Command History:

k                                 Insert the yanked text before the cursor.

j                                 Insert the yanked text before the cursor.

G                                Insert the yanked text before the cursor.

/string or               Search history backward for a command matching string.
CTRL-r

?string or               Search history forward for a command matching string.
CTRL-s

n                                Repeat search in the same direction as previous.

N                               Repeat search in the opposite direction as previous.

Completion commands:

TAB or = or          List all possible completions.
CTRL-i

*                                Insert all possible completions.

Miscellaneous commands:

~                                Invert case of the character under cursor and move a character right.

#                                Prepend ‘#’ (comment character) to the line and send it to the history.

_                                Inserts the n-th word of the previous command in the current line.

0, 1, 2, …                Sets the numeric argument.

CTRL-v                    Insert a character literally (quoted insert).

CTRL-r                     Transpose (exchange) two characters.

Social Bookmark These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Faves
  • LinkedIn
  • MisterWong
  • MySpace
  • Reddit
  • Technorati
  • Wikio
  • YahooBuzz
  • Ask
  • Google Bookmarks
  • Linkarena
  • Live-MSN
  • Newstube
  • seekXL
  • TwitThis
  • Webnews
  • Webride
  • Wikio DE
  • Y!GG
  • YahooMyWeb

Topics: LINUX | No Comments »

Trackback URL for this post: http://www.bearparc.info/2009/10/30/vi-editing-mode-quick-reference/trackback/

Comments

You must be logged in to post a comment.