I\'m a Ruby programming trying to switch from Textmate to MacVim, and I\'m having trouble wading through the gargantuan lists of things you can do in VIM and all of the keyp
tuxfiles.org holds a pretty good cheat sheet. I think there are a couple of points to learning the commands:
d$
), go a quick google search to see if you can find a command for it.Besides these tips, there are some basic concepts you should understand.
d$
. To highlight a line after a particular character use v$
. So notice that $
indicates you will be doing something to the end of the line from where your cursor currently is.u
is undo, and ctrl+r
is redo.3dd
will delete the line your cursor is on and the two lines that follow, similarly 3yy
will copy the line your cursor is on and the two lines that follow.:ls
to list the buffers, and :bn
, :bp
to cycle through them.:help
This is probably the best way to 'learn the ropes', and the rest of the commands you will learn through usage.