Tuesday, March 30, 2010

Re: How to remember end of line when quitting/reopening in insert mode

On 28/03/10 15:54, Andy Wokula wrote:
> Am 28.03.2010 15:00, schrieb Christian Brabandt:
>> Hi Andy!
>>
>> On So, 28 Mär 2010, Andy Wokula wrote:
>>
>>> Am 25.03.2010 16:52, schrieb Christian Brabandt:
>>>> BTW: I noticed some unpleasant side effects when playing around with
>>>> Andy's solution. The plugin seems to interfer with jumping to the
>>>> correct help section. Using :h topic this put me somewhere near the
>>>> topic,
>>>> but not at the right position. This does not happen everytime and I
>>>> assume
>>>> this only happens, when a help page is opened for the first(?) time.
>>>
>>> Maybe this has to do with updating the LOCAL ADDITIONS section in the
>>> main help page.
>>
>> I am sorry, but I don't understand.
>
> The main help page ('helpfile')
> :h
> has a section
> :h local-additions
> which collects the headlines of plugin docs (~/.vim/doc/*.txt, ...).
> Vim has to update it frequently, as $VIMRUNTIME/doc/help.txt is not
> changed.
> Maybe this process has influence on the cursor position.
>

This ought not to influence other helpfiles, and even in help.txt the
tags file for help contains search commands, not line numbers (see :help
help-tags; the single exception is the entry for help-tags itself, which
sends you to line 1 of the tags file), so I don't believe it would be
relevant either.

As for updating it "frequently", does Vim update it more often than (1)
at startup and (2) when :helptags is run? That should be enough,
shouldn't it?

OTOH, all helpfiles have 'nomodifiable' set, and IIRC you're setting the
cursor location at an InsertEnter autocommand, which ought not to be
triggered for a 'nomodifiable' file, so Christian's observations leave
me baffled.


Best regards,
Tony.
--
If anything can go wrong, it will.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

To unsubscribe, reply using "remove me" as the subject.

No comments:

Post a Comment