Some Useful vim Commands – My vim Cheatsheet

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

Updated: April 23rd, 2008

[WORK IN PROGRESS] Here is a list of commands that I use every day with vim, in no particular order. Out of a billion possible key combinations, I found these to be irreplaceable and simple enough to remember.



    search for the word under cursor (to the end of the file)


    search for the word under cursor (to the top of the file)


    suggest (p)revious or (n)ext autocomplete from the list of existing keywords in the file or included files (!).

    :go NNN

    go to byte NNN


    redo last command


    search document for SEARCH TERM


    replace FOO with BAR (g)lobally, case (i)insensitively, and asking for (c)onfirmation