Do you know what a motion is? It's a motion over a certain amount of text in the buffer; none, some or all.
Is a motion like the sequence I type in? For example when I'm trying to remove leading spaces (>) from forwarded messages, I use this one:
:1,$s/^>(space)//
That takes all the >=(greater than) signs from the beginning of each line of the message. And is every command a motion? For example, is Shift-J to join a line a motion as well, or do motions require more letters? I never heard them called motions, but I do them. ;)
So, for example, to go to the end of the current paragraph as seen by vim, you hit the letter 'p'.
Yep, I knew that. :)
To go to the end of the file, you hit the 'G' character, or to the end of the current block of code (programming thing), you'd hit the '}' character. Further, you can modify these by putting more than one of them in a row.
Yep, I know the end and beginning ones, and some of the move around in paragraph ones. And I know the Shift-O for space down and little a for space over.
Type in ':help motion' to get the skinny on all the motions that are available in vim. They are incredibly useful, as you can issue any command followed by the motion you want the command to make to select where it will be applied. The complete listing is in the file 'motion.txt', and it'll be in vim/vim63/help or some such location.
John showed me how to access the help files, so I know how. I was just so excited I was getting all this past mail processed and put away that I wasn't looking to read up on it more yesterday. But I definitely plan to soon!
Thanks!
Brenda