javigon / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

'listchars' causes slowness if it has a codepoint that is missing in the current font #210

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce:

1. Use a font such as "Courier" which is missing some glyphs.
    :set guifont=Menlo:h14

2. Add a glyph to 'listchars' that is missing in 'guifont'. For example, on Mac 
OS X, the "Courier" font is missing the "double arrow" glyph: \u21c9

    :let &listchars = "extends:\u21c9"

3. If the Vim buffer needs to display many "extends" characters, it will be 
slow, possibly because Vim (or OS X?) tries to find an alternative font that 
contains the missing glyph \u21c9.

More details: https://github.com/tpope/vim-sensible/issues/57

Even if this is an OS X issue, would it be possible for Vim to prevent the 
behavior, or possibly cache the result? 

What version of the product are you using? On what operating system?

MacVim 7.4.160, OS X

Original issue reported on code.google.com by jke...@connectwise.com on 2 Apr 2014 at 6:12

GoogleCodeExporter commented 9 years ago
The first step should be corrected as follows:

    :set guifont=Courier:h14

Original comment by jke...@connectwise.com on 2 Apr 2014 at 6:14