Did you find this page useful? If so, the best way you can show appreciation is by using this link for your Amazon shopping.
Powered by MaxBlogPress 
4

Some Useful vim Commands – My vim Cheatsheet


Posted by Artem Russakovskii on April 9th, 2008 in Linux, My Favorites, Programming

Updated: April 23rd, 2008

4 Responses to “Some Useful vim Commands – My vim Cheatsheet”

    4 Comments:
  1. Ikai Lan says:

    Nice sheet, I wrote a few of these down for myself. You're missing some good ones though:

    When in visual select mode:

    x to "cut" instead of Yank
    > to "tab" the visual block
    < to "untab" the visual block

    D to delete characters on the line after the cursor
    dd to delete the line
    (N)dd to delete N number of lines (10dd to delete 10 lines)
    G to end of file
    :q! exit without saving

  2. Thanks, Ikai. Yeah, this sheet is a work in progress, it's definitely not finished. I'm using this post as a scratchpad and will be adding more useful commands as time permits.

  3. Blasher says:

    very cool !!!
    I didn't realize anyone used VI any more except those of us developing Unix code.
    Good Stuff !!!!

  4. Oh yeah, most definitely. I love vim, and it gets more and more natural and easy to use every day.

Leave a Reply