Hi Blue!

On Sa, 22 Sep 2012, Blue wrote:

> On Saturday, September 22, 2012 4:26:57 AM UTC-7, Christian Brabandt wrote:
> > Considering that you answered to a mail, which is 5 years old, please 
> > 
> > give us more context. What exactly is your problem and where did you try 
> > 
> > adding :redraw! which did not help?
> 
> When starting vim using the restore-cursor autocommand tip,  about 75% of the 
> time the cursor is displayed on the last column of the statusline, or the 
> statusline isn't drawn and instead the cursor is displayed on the last column 
> of the last displayed line. When I press any key, the cursor is redisplayed 
> at the proper position and the status line gets redrawn, if it wasn't 
> originally drawn. The following is the minimal vimrc that is needed for me to 
> reproduce this.
> 
> 
> set nocompatible
> set lazyredraw
> 
> " :help restore-cursor
> autocmd BufReadPost *
>     \ if line("'\"") > 1 && line("'\"") <= line("$") |
>     \   exe "normal! g`\""
>     \ endif
> 
> 
> If I add a call to `redraw!` after the execute, the problem resolves for this 
> example, but for a more complicated vimrc using a lot of plugins, figuring 
> out where to add the redraw can be very challenging. 
> Unsetting lazyredraw is my only guaranteed solution now.
> 
> Tested with both iterm2 and Apple's Terminal.

That sounds like a problem with your terminal. Does that also happen 
with the gui (whatever it is called on MacOS)?

I have never experienced a problem like this on Linux (using 
xterm/xterm-unicode/rxvt/rxvt-unicode terminal emulator or the gtk/motif 
guis or on the non-X11 console) or Windows (using the Gui)

regards,
Christian

-- 
You received this message from the "vim_dev" 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

Raspunde prin e-mail lui