I've just upgraded from my old F9 box to C7, which of course means lots of changes.? However, the ones are are annoying me most are with VIM. No matter what I do I can't get? gvim to open in a reasonable size. I have a dual headed setup (laptop + external) and every time gvim opens it takes up both screens. I've tried a few suggestions including the one below without success.? In fact this one causes X to crash when I start gvim. The second problem I have is the selection of the font.? My old box had "sans Regular 12" which was a lovely font to work with. However, when I choose the same font on the new box it's hideous. I don't know best how to request this, but basically how can I have my nice old font back? |if has("gui_running") " GUI is running or is about to start. " Maximize gvim window. set lines=999 columns=999 else " This is console Vim. if exists("+lines") set lines=50 endif if exists("+columns") set columns=100 endif endif |
Am 06.11.20 um 12:11 schrieb Gary Stainburn:> The second problem I have is the selection of the font.? My old box had > "sans Regular 12" which was a lovely font to work with. However, when I > choose the same font on the new box it's hideous. I don't know best how > to request this, but basically how can I have my nice old font back? >Check your font name. Example: $ grep font .gvimrc |tail -1 set guifont=Source\ Code\ Pro\ 14 $ fc-list |grep Source|head -1 /usr/share/fonts/adobe-source-code-pro/SourceCodePro-BlackIt.otf: Source Code Pro,Source Code Pro Black:style=Black Italic,Italic -- Leon
On Fri, 6 Nov 2020 at 06:11, Gary Stainburn <gary.stainburn at ringways.co.uk> wrote:> I've just upgraded from my old F9 box to C7, which of course means lots > of changes. However, the ones are are annoying me most are with VIM. > > No matter what I do I can't get gvim to open in a reasonable size. I > have a dual headed setup (laptop + external) and every time gvim opens > it takes up both screens. > > I've tried a few suggestions including the one below without success. > In fact this one causes X to crash when I start gvim. > > The second problem I have is the selection of the font. My old box had > "sans Regular 12" which was a lovely font to work with. However, when I > choose the same font on the new box it's hideous. I don't know best how > to request this, but basically how can I have my nice old font back? > >sans Regular 12 is not a real font, but a 'link' to whatever was set as the default Sans font of the system. I don't know if you ever changed it and Fedora 9 is equivalent to something between ~CentOS-5 and CentOS-6. There aren't a lot of fonts by default in 9 so a lot of systems would get extra ones.. you will need to look at the backups of what you had on the system to determine what was being used. I am expecting it might have been dejavu font but if you installed Windows TTF fonts as was common then it would be those. HOWEVER, a different issue is that you are still using those older fonts if they were in your .fonts directory. The older fonts use a different 'hinting' system which when viewed on a newer X/Wayland makes the font look horrible. Since I have been bitten by this with other people I would check that also.> |if has("gui_running") " GUI is running or is about to start. " Maximize > gvim window. set lines=999 columns=999 else " This is console Vim. if > exists("+lines") set lines=50 endif if exists("+columns") set > columns=100 endif endif | > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >-- Stephen J Smoogen.
On Fri, 6 Nov 2020, Stephen John Smoogen wrote:> HOWEVER, a different issue is that you are still using those older fonts if > they were in your .fonts directory. The older fonts use a different > 'hinting' system which when viewed on a newer X/Wayland makes the font look > horrible. Since I have been bitten by this with other people I would check > that also.One would hope that the new system was distinguishable from the old and the new vim would emit a warning somewhere, preferably in a place where it would be noticed. I gather that that did not happen. Please do not quote boilerplate. -- Michael hennebry at web.cs.ndsu.NoDak.edu "Sorry but your password must contain an uppercase letter, a number, a haiku, a gang sign, a heiroglyph, and the blood of a virgin." -- someeecards