Cannot jump to a helptag containing a dash.

Example: version5.txt defines *new-script*. But if you hit Ctrl-] on 
|new-script|, Vim will either give an error (if the cursor is on new) or 
take you to *script* in usr41.txt (if the cursor is on -script).

Using Huge 7.2.148 on Linux.

When displaying version5.txt, 'iskeyword' is at its Unix default, 
@,48-57,_,192-255

I haven't (yet) tested what would happen with a 
$VIM/vimfiles/after/ftplugin/help.vim defining the dash as part of 
'isk'. Maybe other characters should be included too? Hm., I guess the 
paragraph

>       For a help file it is set to all non-blank printable characters except
>       '*', '"' and '|' (so that CTRL-] on a command finds the help for that
>       command).

(under 'iskeyword') ought to be implemented via a filetype-plugin rather 
than a modeline. I guess this would mean

        setl isk=33-127,161-255,^*,^\",^\|

wouldn't it? (i.e., excluding control characters 0-0x1F and 0x80-0x9F, 
plus space, no-break space, star, double-quote and bar, and including 
the rest).


Best regards,
Tony.
-- 
ARTHUR:       You are indeed brave Sir knight, but the fight is mine.
BLACK KNIGHT: Had enough?
ARTHUR:       You stupid bastard.  You havn't got any arms left.
                  "Monty Python and the Holy Grail" PYTHON (MONTY) 
PICTURES LTD

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

Raspunde prin e-mail lui