Azimout's Linux weblog


leave a comment »

I’m making a conscious effort to switch CLI editors from pico/nano to vi(m). Here’s a list of keys:

  • h/j/k/l: ←↓↑→
  • b/w:  move by words
  • (/): move by sentences
  • {/}: move by paragraphs
  • Ctrl+B/F: move by screens
  • 0/$: start/end of current line
  • -/+: first character of previous/next line
  • /: search (forward)
  • n: repeat search
  • i/a: insert/append
  • I/A:insert at beginning of line/append at end of line
  • O/o: new line above/below cursor
  • x/dw/dd: delete character/word/line
  • s/S: substitute character/line
  • u: undo



Written by azimout

20/04/2010 at 16:37

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: