Strange characters at start up

24 views
Skip to first unread message

Antonio Ortiz

unread,
Dec 13, 2019, 2:09:12 AM12/13/19
to vim_use
Hi
When I open gvim it shows squares with weird characters. I have to go to:
Edit --> Select Font
select any and the characters disappear. Then the program can be used normally.
The same behavior if I open a fext file associated to gvim, like 'file.tex'
It never happened before.
How do I fix this?
Thanks

(I send the image in the attached file)
strange_characters.png

Paul

unread,
Dec 13, 2019, 8:39:26 AM12/13/19
to vim_use
On Thu, Dec 12, 2019 at 06:58:32PM -0800, Antonio Ortiz wrote:
>When I open gvim it shows squares with weird characters. I have to go to:
>Edit --> Select Font
>select any and the characters disappear. Then the program can be used
>normally.
>The same behavior if I open a fext file associated to gvim, like 'file.tex'
>It never happened before.
>How do I fix this?

Your default font does not have glyphs for the characters that are in the file. Persist the new font by setting guioptions in $MYGVIMRC.
signature.asc

Antonio Ortiz

unread,
Dec 13, 2019, 2:42:45 PM12/13/19
to vim_use
I have defined a font in my .vimrc file. This misbehaviour occurs just at opening. When I change to any font the glyphs disappear,
And everything defined in the .vimrc file works as expected.

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20191213133919.GA12093%40rainslide.net.

Tony Mechelynck

unread,
Dec 13, 2019, 3:40:12 PM12/13/19
to vim_use
On Fri, Dec 13, 2019 at 8:42 PM Antonio Ortiz <anto...@gmail.com> wrote:
>
> I have defined a font in my .vimrc file. This misbehaviour occurs just at opening. When I change to any font the glyphs disappear,
> And everything defined in the .vimrc file works as expected.
>
> El vie., 13 dic. 2019 a las 7:39, Paul (<vim9...@rainslide.net>) escribió:
>>
>> On Thu, Dec 12, 2019 at 06:58:32PM -0800, Antonio Ortiz wrote:
>> >When I open gvim it shows squares with weird characters. I have to go to:
>> >Edit --> Select Font
>> >select any and the characters disappear. Then the program can be used
>> >normally.
>> >The same behavior if I open a fext file associated to gvim, like 'file.tex'
>> >It never happened before.
>> >How do I fix this?
>>
>> Your default font does not have glyphs for the characters that are in the file. Persist the new font by setting guioptions in $MYGVIMRC.

Hm.

What are the first few lines of the output of ":version" (up to and
including the line ending in "Features included (+) or not (-):" ?
What is the output of ":language"? Do you set it (or part of it) in
your vimrc? Do you set 'encoding' in your vimrc (and to what)? If you
do any of these, in what sequence do the "language", "set enc" and
"set gfn" lines appear in your vimrc?
Which font does your vimrc set? If you set the same font again
manually at startup, (by ":set gfn=some\ font\ name", and see ":help
option-backslash" about what must be backslash-escaped in the value),
does it work? And after that, is that font shown in the output of
":set gfn?"?

(In all cases, type the above colon commands without their surrounding
quotes and followed by <Enter>.)


Best regards,
Tony.

Antonio Ortiz

unread,
Dec 14, 2019, 12:31:00 PM12/14/19
to vim_use



Hm.
Hola Tony,
I thank you for your reply 

What are the first few lines of the output of ":version" (up to and
including the line ending in "Features included (+) or not (-):" ?
VIM - VI IMproved 8.1 (2018 May 18)
Parches incluidos: 1-2383
Compilado por 'http://www.opensuse.org/"
Versión "enorme" con GTK3 GUI. Aspectos incluidos (+) o no (-):
 
What is the output of ":language"?
Idioma actual : "LC_CTYPE=es_ES.UTF-8;LC_NUMERIC=C;LC_TIME=es_ES.UTF-8;LC_COLLATE=es_ES.UTF-8;L
C_MONETARY=es_ES.UTF-8;LC_MESSAGES=es_ES.UTF-8;LC_PAPER=es_ES.UTF-8;LC_NAME=es_ES.UTF-8;LC_ADDR
ESS=es_ES.UTF-8;LC_TELEPHONE=es_ES.UTF-8;LC_MEASUREMENT=es_ES.UTF-8;LC_IDENTIFICATION=es_ES.UTF
-8"
 
Do you set it (or part of it) in
your vimrc?
No.
Do you set 'encoding' in your vimrc (and to what)?
No 
If you
do any of these, in what sequence do the "language", "set enc" and
"set gfn" lines appear in your vimrc?
Which font does your vimrc set?
set guifont=Bera\ Sans\ Mono\ 10      
If you set the same font again
manually at startup, (by ":set gfn=some\ font\ name", and see ":help
option-backslash" about what must be backslash-escaped in the value),
does it work? And after that, is that font shown in the output of
":set gfn?"?
Following your instructions up to this paragraph I openned some *.tex file and
went to the routine: Edit --> Select font.  I chose any; the strange characters disappeared
(I could read, normally, the contents of the file);
and when I put:
:set gfn=Bera\ Sans\ Mono\ 10
The weird squares and characters appeared!
So, in my .vimrc I changed the font and now the problem seems to be solved.
Just curious. I guess I need to install Bera-font. How do I do that?
Thank you so much for your support
Cheers!

(In all cases, type the above colon commands without their surrounding
quotes and followed by <Enter>.)


Best regards,
Tony.

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages