bengong

May 21, 2006

VI cheatsheet

Filed under: sepi

:D cheatsheet…
————————
Command mode
i insert mode
esc command mode
:w save file
:wq save file and quit
:q quit
:q! quit and do not save
u undo

Command mode - moving the cursor
k go one line up
j go one line down
h go one char left
l go one char right
^ go to beginning of this line
$ go to end of this line
ctr-f go down one screen
ctr-b go up one screen

Command mode - deletion
x delete the char on cursor
dw delete the whole word
dd delete the whole line

Command mode - searching
/ search forward from cursor for a pattern
? search backward from cursor for a pattern
n next result
sft-n previous result

1 Comment »

The URI to TrackBack this entry is: http://fsckedt.blogsome.com/2006/05/21/vi-cheatsheet/trackback/

  1. :) Makasih commentnya om :)
    Lebih complit :D :)

    Comment by JavaManiaC — June 6, 2006 @ 10:05 pm

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Anti-spam measure: please retype the above text into the box provided.

Get free blog up and running in minutes with Blogsome
Theme designed by Chris M