Wednesday, December 21, 2011

Re: Screen refresh lag on gvim + ubuntu 11.10 (gnome3)

On 21/12/11 00:07, Nathan Cox wrote:
> First, let me say that I'm in love with Vim. I'm a new user (started
> about two weeks ago) and I already can't imagine using anything else.
>
> I recently got into playing with the colorschemes. I admit it, I'm a
> sucker for pretty syntax highlighting. If I don't like the colors it
> will totally break my love of a product. I downloaded "Moria" and
> noticed that when I open it in gvim (rather than vim) the colors just
> look great. I suppose gvim has more options for colors due to not
> being in a console.

Yes, gvim has the 256 * 256 * 256 = 16777216 colors typical of a modern
GUI, while consoles have a maximum of 256 colors, often fewer than that,
down to 8 background / 16 foreground still typical of many pure-text
displays (pure-text i.e., not emulated by a "text" window on a GUI screen).

>
> My issue now, however, is that when I'm using gvim i get a strange
> issue with screen redraw lag. It's most noticeable when typing in
> commands for some reason. Basically what it does is retains the orange
> cursor over an existing letter randomly, making it impossible to read
> what I've written.

ah, strange. Ex-commands (after a colon) or Normal-mode commands? If the
latter, does it help if you hit the Ctrl-L key combination?

>
> This also occurs when entering html/php tags. As I type the syntax
> will "lock" into a wrong color (or worse "between" colors).

"Between" colors? I don't understand. Could you give an example?

> This is
> very frustrating to me, I find it extremely distracting while I'm
> typing to have the text behind the cursor unreadable.

What colour does the colorscheme set the cursor to?

:verbose hi Cursor
:verbose hi lCursor

>
> As I said, I'm very new to Vim. I would appreciate any assistance,
> just tell me what information I need to provide to help resolve this
> issue (and how to get that information) and I'll be more than happy to
> post it.
>

Check also the blink settings in the 'guicursor' option:
:verbose set gcr?

The default is


guicursor=n-v-c:block-Cursor/lCursor,ve:ver35-Cursor,o:hor50-Cursor,i-ci:ver25-Cursor/lCursor,r-cr:hor20-Cursor/lCursor,sm:block-Cursor-blinkwait175-blinkoff150-blinkon175

i.e., blink very fast in Insert-mode showmatch (wait 0.175 s, off 0.15
s, on 0.175 s), blink at Vim's defaut rhythm in other modes (wait 0.7 s,
on 0.4 s, off 0.25 s). You can change that, e.g. I use a slower rhythm:


guicursor=n-v-c:block-Cursor/lCursor,ve:ver35-Cursor,o:hor50-Cursor,i-ci:ver25-Cursor/lCursor,r-cr:hor20-Cursor/lCursor,sm:block-Cursor,a:blinkwait750-blinkoff750-blinkon750

i.e. blink in all modes, 0.75 s on, 0.75 s off. See
:help 'guicursor'


Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
249. You've forgotten what the outside looks like.

--
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

No comments:

Post a Comment