On 14/04/09 06:30, _sc_ wrote:
>
> On Monday 13 April 2009 10:01 pm, Yue Wu wrote:
>>
>> On Tue, 14 Apr 2009 10:13:38 +0800, Tony Mechelynck wrote:
>>
>>>>
>>>> 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.)
>>
>> Right, that confuses me, why does it happen?
>
> i too am confused, yue
>
> here's my experience, and the reason i came up with my<Leader>h
> mapping:  if i enter
>
>      :h version6
>
> i land in version6.txt on the runtime/doc path, and all the tags
> jump as they are supposed to -- for this experiment i picked on
> "digraphs-changed" because it's near the beginning and it has a
> dash
>
> on the other hand, if i am cruising the doc path in konsole looking
> for random bits of information, and i start gvim on version6.txt,
> yes, the filetype gets set to help, but the links do NOT work for
> me if they have a dash -- that same "digraphs-changed" tag, if the
> cursor is on the word "changed", comes back with
>
>      E426: tag not found: changed
>
> my<Leader>h adds the dash and the dot to isk, and all the tags
> magically start working
>
> in my vim (7.2.148) having ft set to help is not sufficient to add
> the dash and dot to isk
>
> sc

By using "gvim version6.txt" you load the file as if you had done

        gvim
then
        :e version6.txt

and the "help magic" doesn't happen. If you want it to happen 
nevertheless, add an after/ftplugin/help.vim, as I already said twice 
before.


Best regards,
Tony.
-- 
hundred-and-one symptoms of being an internet addict:
2. You kiss your girlfriend's home page.

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

Reply via email to