On 06/04/09 18:51, Tony Mechelynck wrote: > > 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.
P.S. The above ":setlocal" command in a filetype-plugin for "help" does indeed solve my problem. I suggest that the line be added to $VIMRUNTIME/ftplugin/help.vim Best regards, Tony. -- Blessed are they who Go Around in Circles, for they Shall be Known as Wheels. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
