Tuesday, October 5, 2010

Re: How to set utf-8 locally (for a buffer) on loading the file

On Oct 4, 1:22 pm, esquifit <esqui...@googlemail.com> wrote:
> On 4 Oct, 15:42, Ben Fritz <fritzophre...@gmail.com> wrote:
> > > > On a related note: is it possible to set different fonts in different
> > > > vim windows/tabs within a single application window?
>
> > This is not possible. 'guifont' is always global. Can you not find a
> > font with all the glyphs of interest to you? Or maybe, keep two
> > different shortcuts/aliases for Vim, one for each font you need to
> > use, and always use separate Vim instances.
>
> My default font is Courier New 9pt, but when I open the Japanese file,
> I have to change the font to something like MS Mincho 12pt or MS
> Gothic 12pt, since Courier New does not supports Japanese characters
> and the size is also too small (for me). As of now, I'm changing the
> font with an autocommand on opening the Japanese file, but then I'd
> like to restore the previous font once I'm done with this file. I
> guess I could :map a key to toggle between both fonts and sizes.

Courier New has a very limited set of characters available for
display. I would suggest searching online for some free fonts that
have a larger set of supported characters. I'm fond of Deja Vu Sans
Mono, which has a reasonably large character set, but I'm not sure if
it has the specific ones you want (or whether the style suits you).
There are plenty of others out there as well.

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