Matt Wozniski <[email protected]> writes:
>> I'm pretty sure its xpt causing the trouble.
>>
>> My test is to start vim without xpt in ~/.vim
>>
>> Then start vim after unpacking xpt into ~/.vim ... and the status line
>> is changed. And I can repeat it every time.
>
> :verbose set statusline?
>
> should confirm that xpt is mangling it.
>
> If it is, you should probably be able to get around it with an autocmd
> that just resets 'statusline' to the default value after xpt has
> already been loaded. For example,
How can I know when xpt has already loaded? Are plugins loaded after
vimrc is read?
> autocmd VimEnter * :set statusline&
Thanks, that looks useful
Is it normal for a plugin to reset the status line? I'm not an
experienced plugin user...
Or is it likely to be some kind of error or bad code inside xpt?
Changing the ruler portion of statusline from:
Line number,column percent of file
8,4 %16
... to
<,4 %16
doesn't look very useful. It looks suspiciously like an error or
mistake of some kind.
Oh Oh, I just opened vim on .vimrc. I see the messed up status line.
I put your suggestion (autocmd VimEnter * :set statusline&)at the
bottom of .vimrc... saved... didn't close vim but instead just
resourced .vimrc....
However, the status line did not change. Its still messed up.
I used the command you suggested at that point:
:verbose set statusline (and it shows)
statusline=%<%f %h%m%r%= %P%{XPMautoUpdate("statusline")}
Last set from ~/.vim/xpt/plugin/xpmark.vim
Just putting `autocmd VimEnter * :set statusline&' at the end of
.vimrc and re-sourcing it... without restarting vim doesn't fix the
statusline. But restarting vim with
`autocmd VimEnter * :set statusline&' at the end... and the status
line is fixed.
Good... but I don't understand why resourcing .vimrc or manually
calling: :set statusline& with vim running doesn't repair whatever
xpt is doing.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---