This had me really puzzled.  I was just about to post for help when I
decided to upgrade vim and that fixed the problem.  I thought I'd post
anyway in case others encounter this problem at some point.

When I tried to use the K command, it always used the rest of the
current line as the keyword.  I tried setting iskeyword to all
sorts of different values, but nothing changed.  Here's an example of
what I was seeing:

$ echo this is a test of vim > /tmp/test.txt
$ vim /tmp/test.txt

Then I'd position the cursor on the first letter of the word "test"
and press K.  I expected to see the man page for the "test"
command.  Instead, I got the error:

No manual entry for test of vim

shell returned 1

Running :set iskeyword? gave me "iskeyword=@,48-57,_,192-255".  Even
after ":set iskeyword=a-z,A-Z", I got this same behavior.  Using
visual mode to select "test" and then pressing K also produced the
error.  If I moved the cursor to the beginning of the line, K gave the
error:

No manual entry for this is a test of vim

shell returned 1

My previous vim version was the one provided by MacPorts:

    VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Oct 11 2008 14:56:57)
    MacOS X (unix) version
    Included patches: 1-25

I did "sudo port selfupdate && sudo port upgrade vim" and that fixed
it.  The new version is:

    VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Dec 26 2008 09:25:07)
    MacOS X (unix) version
    Included patches: 1-65

--
Michael

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to