On 5/4/07, Normandie Azucena <[EMAIL PROTECTED]> wrote:
hi all! how can I get the word under the cursor? im doing a script and I want my input to be the current word under the cursor tnx! normandie
Most likely, you're in insert mode, CTRL-R CTRL-W puts the current word under the cursor into whatever you're editing (though it seems to be a no-op in insert mode), whether it be an ex command or a search or whatever. If you're not actually going to be in insert mode, then you can yiw (yank inner word) to some register and use that. There's probably a better way (especially if you're searching for the word.. see the * and # commands). Shawn M Moore
