On Tue, 31 Jan 2012, gberar wrote:
I installed some Python specific Vim scripts and found that, when
editing python files, the "Super Search" does not behave as it does
normally.
If I have the cursor over "foo" in the string "foo.bar" and type the
character *, vim will search for the string "foo" as long the file is
not a python file type.
If I edit a python file and perform the same action, vim will search
for "foo.bar".
What is causing this behavior? I really want it to perform the normal
way unless there is a good reason it does this.
What you're calling "Super Search" is actually keyword search. It
searches for the keyword under the cursor¹. One of those files you list
is setting it so that '.' is considered part of a "word".
Seeing as how I'm not seeing this behavior, and I don't have this file:
./vim73/plugin/pydoc.vim
You should check to see if it sets the 'isk' (short for 'iskeyword') option.
Also, you shouldn't install plugins in the system directory (if that's
what you're abbreviating to './'). There's a good chance they'll be
overwritten when you update Vim.
--
Best,
Ben
¹: It doesn't always just use the "word" under the cursor, but only when
there's no keyword character underneath the cursor. For full details, see:
:help star
Also see:
:help 'iskeyword'
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php