Vim search under cursor

Neil Cerutti horpner at yahoo.com
Wed Feb 7 08:00:33 EST 2007


On 2007-02-07, jm.suresh at no.spam.gmail.com <jm.suresh at gmail.com> wrote:
> Hi, I am using gvim to edit python source files. When I press "*" or
> "#", I would want to search for the attribute name under the cursor
> and not the entire string.
>  For example, If I have os.error and pressing * on top of error
> searches for os.error rather than error. How to set this, any Idea?

It's will to break things, but you can do this by editing the
iskeyword string and adding in the '.'. :h 'iskeyword'.

-- 
Neil Cerutti



More information about the Python-list mailing list