On Sep 23, 9:28 am, Christian Brabandt <[email protected]> wrote: > > 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)?
On OS X, iterm2 and Apple Terminal are the two most popular terminal emulators. It's odd that they would both contain the same bug. No, this doesn't happen with the gui (MacVim), but there was a similar bug in the MacVim bugracker last year: https://code.google.com/p/macvim/issues/detail?id=319 I will also file a bug for iterm2 and see if the developer can help track this down. -- 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
