On 26/12/08 18:23, Michael Hendricks wrote:
> 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
Works for me:
:help K
:verbose set isk? keytwordprg?
iskeyword=!-~,^*,^|,^",192-255
keywordprg=MANPAGER=more man -a
Last set from ~/Session.vim
Set the cursor on the w of keyword in ...lookup the keyword under the
Hit K
See
:! MANPAGER=more man -a 'keyword'
No manual entry for keyword
shell returned 16
The words "under the" after the cursor were not passed to the
'keywordprg' command.
VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Dec 24 2008 13:25:23)
Included patches: 1-75
Extra patches: Extra float functions (Bill McCarthy)
Compiled by [email protected]
Huge version with GTK2-GNOME GUI. Features included (+) or not (-):
[...]
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---