On 14/04/09 03:42, pansz wrote:
>
> Yue Wu 写道:
>> After I check, you are right, it's an iskeyword issue, but I don't know
>> why my
>> help file has the different settings for iskeyword? It's a file not
>> located in
>> $runtimepath/doc, it's in other dir. now I have to use local modeline:
>> vim:tw=78:ts=8:ft=help:norl:iskeyword+=-:iskeyword+=.:
>> to make it work.
>>
>
> afaik all help files specify its own modeline. try :help
> and go to the last line, you see:
>
> vim:tw=78:fo=tcq2:isk=!-~,^*,^\|,^\":ts=8:ft=help:norl:
>
> Since the above lies in the official help.txt, we can safely think that
> this is the official way to write a help file. (see isk= in help.txt)
OTOH, many others don't include an 'isk' setting:
usr01.txt
Copyright: see |manual-copyright| vim:tw=78:ts=8:ft=help:norl:
options.txt
vim:tw=78:ts=8:ft=help:norl:
version7.txt
vim:tw=78:ts=8:ft=help:norl:
etc.; note that all these are by Bram Moolenaar and include hotlinks
with dots in them. Nevertheless clicking these hotlinks, or hitting
Ctrl-] on them, leads you to the proper place. For instance, hitting
Ctrl-] on the t of arabic.txt at line 729 of options.txt (after getting
there by issuing ":help 'arabic'" and possibly scrolling to the end of
the 'arabic' section) leads you to the arabic.txt helpfile, not to
gui.txt which is the first result when matching for txt or .txt as the
helptag.
(Note: I have an after-ftplugin which sets the 'isk' option for
helpfiles but I checked it with gvim -N -u NONE which doesn't load any
plugin. The only scripts it sources are menu.vim and autoload/paste.vim.)
Best regards,
Tony.
--
The intelligence of any discussion diminishes with the square of the
number of participants.
-- Adam Walinsky
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---