[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Search waht is under the cursor
From: |
Nick Roberts |
Subject: |
Re: Search waht is under the cursor |
Date: |
Mon, 30 Jul 2007 21:49:40 +1200 |
> Hello
> I would like to search the string that is currently under the cursor.
> It should do something very similar to C-s and C-r but take the string
> that is currently under the cursor as a default search pattern.
The characters `C-w' and `C-y' can be used in incremental search to
grab text from the buffer into the search string. This makes it
convenient to search for another occurrence of text at point. `C-w'
copies the character or word after point as part of the search string,
advancing point over it. (The decision, whether to copy a character or
a word, is heuristic.) Another `C-s' to repeat the search will then
search for a string including that character or word.
Hopefully next time this will help you search the manual more effectively
first!
--
Nick http://www.inet.net.nz/~nickrob