A web developer’s diary

April 24, 2007

Vim Quick Tips – Cheat Sheet

Filed under: Vim — Celia @ 9:29 am

Thanks to those who wrote all nice tips in Vim.org, I am beginning to love my editor more and more. Here, I have noted down some quick tips that I found at vim.org and ones that you’ll not usually find anywhere else.

I have followed a terminology here.
CMD – means command mode.
INS – means insert mode.
VIS – means visual mode.
LOC – means to be entered in .vimrc file

Mode Command Description
CMD

:lineno Go to a specific line.
CMD * Searches for the word under cursor
INS CTRL - N Autocompletes word
CMD % to jump to a matching closing/opening brace
CMD . quick copy/paste
CMD x Shortcut for save and exit (wq)
CMD @: Repeat last command
LOC iab { {CR} (Enclose CR in angular brackets) automatically adds closing brace

Advertisements

1 Comment »

  1. web developer and vim … well I thought u folks use IDE’s … vim is good nevertheless …

    Comment by Ankur — June 24, 2007 @ 6:33 pm | Reply


RSS feed for comments on this post. TrackBack URI

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: