Wednesday, July 25, 2012

Re: GVim doesn't display Euro symbol ?

On Wednesday, July 25, 2012 5:53:24 AM UTC-5, Lucas Sanner wrote:
> Hi,
>
> I just can't display Euro symbol (and some others) typing Alt Gr + e
> into GVim under Windows 7, it only displays a tiny square.
>
> In _gvimrc my setting looks like this:
>
> set fileencodings=ucs-bom,utf-8,latin1
>
> I'm a little bit confused between utf-8 and unicode but so
> far I've never had encoding pb until now that I need to use
> currencies symbol.
>
> Can someone helps me ?
>
> Thanks

First, are you using a font which actually has a glyph for the Euro symbol? Check the current font actually in use with :echo getfontname(), then check with charmap or a similar utility to be sure it has the glyph you want, or select a different font. See http://vim.wikia.com/wiki/Setting_the_font_in_the_GUI

Second, is your 'encoding' option set to a unicode encoding? Vim cannot internally represent all symbols otherwise. See http://vim.wikia.com/wiki/Working_with_Unicode

Finally, Vim offers a "digraph" feature to enter special characters. Try using CTRL-K followed by E and then u (<C-K>Eu) in insert mode to enter a Euro symbol.

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