[wellylug] Vim Tips
jfouhy at paradise.net.nz
jfouhy at paradise.net.nz
Wed Aug 3 15:44:40 NZST 2005
> >From: "Grant McLean" <grant at mclean.net.nz>
> >Searching:
> >
> >The asterisk ('*') can be used for search forwards in the document for
> >the word under the cursor. The hash ('#') is the same but searches
> >backwards.
> >
> >The percent symbol ('%') searches for (jumps to really) the bracket
> >matching the one under the cursor or the next bracket in the file if
> >there isn't one under the cursor
Also, f searches forwards for a character, and F searches backwards. ; repeats
the search in the same direction and , repeats in the opposite direction.
> >You can return to a mark by typing a single quote followed by the letter
> >(eg: 'm). You can also use the backtick instead of the single quote.
> >For reasons I can't quite explain, I prefer the backtick.
Hmm, I didn't know you could use a single quote.
...some trialling in emacs suggests that single quote takes you to the beginning
of the line the mark is on; backtick takes you to the specific character.
Also, I'm not sure exactly what `` does, but it often does what I want :-)
By the way, M-x viper-mode in emacs is instanceof(BestThingEver) :-)
--
John.
More information about the wellylug
mailing list