vi/vim tips – # and * (hash and star)

I find # and * (hash and star) very useful commands in vi. They mean “find the next instance of the word under the cursor” (respectively “previous”). Coupled with ‘n’ and ‘N’ (do it again – respectively forwards and backwards), they’re a good way to find references to a function name.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: