On 19/07/09 19:08, Horvath Adam wrote:
>
> Thanks for your detailed answers.
>
> This DeJaVu idea work for me too!
>
> - I downloaded .zip package of dejavu fonts from here:
> http://dejavu-fonts.org
> - and in _vimrc:
> set guifont=DeJaVu\ Sans\ Mono:h18:cDEFAULT
That's good enough if your vimrc is used only on Windows (though on
Windows you can use underscores for the spaces in the name), and only in
gvim -- though a height of 18 looks awfully big to me. Starting when I
had a double-boot Linux/Windows system I built up a complex if...
elseif... elseif... (etc.) else... endif block to use the right format
for the program I was running on. My current version is like this:
if has("gui_running") " don't try to set an unsupported option
if has("gui_gtk2") " GTK2 with or without Gnome, not GTK1
set gfn=Bitstream\ Vera\ Sans\ Mono\ 8
elseif has("gui_photon") " Photon
set gfn=Bitstream\ Vera\ Sans\ Mono:s8
elseif has("gui_kde") " the obsolete kvim
set gfn=Bitstream\ Vera\ Sans\ Mono/8/-1/5/50/0/0/0/1/0
elseif has("x11") " other X11 including GTK1
set gfn=-*-lucidatypewriter-medium-r-normal-*-*-90-*-*-m-*-*
else " non-X11 including Windows
set gfn=Lucida_Console:h9:cDEFAULT
endif
endif
>
> Now I can read all character in gvim 7.2 as well.
>
> Tony: I don't want to use Devanagari "hieroglyphs". Maybe later.
Oh? I thought that was the "proper" way to write Sanskrit, just like the
way to write Chinese is with hanzi ideograms, not pinyin romanization.
>
> For smart inserting I will see "map" or "keymap" commands.
I recommend keymaps (especially for non-Latin scripts) because they can
be turned on or off at the touch of a key, giving you in effect the
functionality of two keyboards. There are a number distributed with Vim,
and if you don't find one to your liking, writring your own is really
easy (though tedious for non-Latin alphabets). For Latin alphabets,
digraphs are usually good enough (see ":help digraph.txt"). For instance
my mother language is French, and my keyboard doesn't include the French
"oe ligature", but Vim gives it easily with Ctrl-K o e
Best regards,
Tony.
--
I doubt, therefore I might be.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---