Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Presidency: The greased pig in the field game of American politics. -- Ambrose Bierce


computers / alt.comp.os.windows-10 / Set gVim permanent font in Windows 10

SubjectAuthor
* Set gVim permanent font in Windows 10Indira
`* Re: Set gVim permanent font in Windows 10Paul
 `- Re: Set gVim permanent font in Windows 10Nick Cine

1
Set gVim permanent font in Windows 10

<uvuu6f$2ol0c$1@paganini.bofh.team>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=80968&group=alt.comp.os.windows-10#80968

  copy link   Newsgroups: alt.comp.os.windows-10 comp.editors
Path: i2pn2.org!i2pn.org!newsfeed.bofh.team!paganini.bofh.team!not-for-mail
From: indira@ghandi.net (Indira)
Newsgroups: alt.comp.os.windows-10,comp.editors
Subject: Set gVim permanent font in Windows 10
Date: Sat, 20 Apr 2024 04:49:43 +0530
Organization: To protect and to server
Message-ID: <uvuu6f$2ol0c$1@paganini.bofh.team>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 19 Apr 2024 23:19:45 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="2905100"; posting-host="vIdaFOKql7PmGPz/TS/dWw.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
X-Notice: Filtered by postfilter v. 0.9.3
Content-Language: en-GB
 by: Indira - Fri, 19 Apr 2024 23:19 UTC

This didn't used to matter until my eyes went south recently.

In Windows 10 gVim, the font defaults to
Font=Fixedsys
Font style=Regular
Size=9

But there are no other size options for that specific font.
gVim:Edit > Select font > {Font,Font style,Size}

However, there are other fonts with larger sizes such as
Font=Unispace
Font style=Bold
Size=20

But the setting doesn't stick in the GUI.
How do make the font selection permanent in the Windows gVim tool?

Re: Set gVim permanent font in Windows 10

<uvva3e$3eg8s$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=80970&group=alt.comp.os.windows-10#80970

  copy link   Newsgroups: alt.comp.os.windows-10 comp.editors
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nospam@needed.invalid (Paul)
Newsgroups: alt.comp.os.windows-10,comp.editors
Subject: Re: Set gVim permanent font in Windows 10
Date: Fri, 19 Apr 2024 22:42:53 -0400
Organization: A noiseless patient Spider
Lines: 73
Message-ID: <uvva3e$3eg8s$1@dont-email.me>
References: <uvuu6f$2ol0c$1@paganini.bofh.team>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 20 Apr 2024 04:42:54 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="dd9615dc73a21af2d4dddc2b891ae181";
logging-data="3621148"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+8N/Gbbc52kCt6c4pmSvOeLvqniR7rY9Y="
User-Agent: Ratcatcher/2.0.0.25 (Windows/20130802)
Cancel-Lock: sha1:eF7WvqNMzop8dL3WWQTImSGO/84=
In-Reply-To: <uvuu6f$2ol0c$1@paganini.bofh.team>
Content-Language: en-US
 by: Paul - Sat, 20 Apr 2024 02:42 UTC

On 4/19/2024 7:19 PM, Indira wrote:
> This didn't used to matter until my eyes went south recently.
>
> In Windows 10 gVim, the font defaults to Font=Fixedsys
> Font style=Regular
> Size=9
>
> But there are no other size options for that specific font.
> gVim:Edit > Select font > {Font,Font style,Size}
>
> However, there are other fonts with larger sizes such as
> Font=Unispace
> Font style=Bold
> Size=20
>
> But the setting doesn't stick in the GUI.
> How do make the font selection permanent in the Windows gVim tool?

Seems like a "test" for the operator, to see if they're a Level 37 wizard or not :-)

https://www.vim.org/download.php
gvim_9.1.0_x64_signed.exe (64bit installer) <=== Unpack with 7ZIP, "Open Archive"

gvimrc_example.vim

To use it, copy it to
for Unix: ~/.gvimrc
for Amiga: s:.gvimrc
for MS-Windows: $VIM\_gvimrc <=================== I hope that isn't C:\Program Files area :-)
for Haiku: ~/config/settings/vim/gvimrc
for OpenVMS: sys$login:.gvimrc

set the X11 font to use <=== hahaha!
set guifont=-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-1

I wonder how they got a GUI in Windows ?

"My .vimrc (Windows, GVIM)"
https://gist.github.com/wheeyls/1114301/b1ea725788ede665902f6d4880d5078612e3adab

"set guifont=courier_new:h10 <=== commented out
set guifont=Monaco,"ProggyTinySZ",Courier\ New:h10,Courier,Lucida\ Console,Letter\ Gothic,
\Arial\ Alternative,Bitstream\ Vera\ Sans\ Mono,OCR\ A\ Extended

From this we learn (naturally actually) that there are two gvimrc files.
The system one is in $VIM, the user one is in $HOME.

https://superuser.com/questions/86246/where-should-the-vimrc-file-be-located-on-windows-7

For Vim 7.4, these are the paths it looks for on Windows

system vimrc file: "$VIM\vimrc"
user vimrc file: "$HOME\_vimrc"
2nd user vimrc file: "$HOME\vimfiles\vimrc"
3rd user vimrc file: "$VIM\_vimrc"
user exrc file: "$HOME\_exrc"
2nd user exrc file: "$VIM\_exrc"
system gvimrc file: "$VIM\gvimrc"
user gvimrc file: "$HOME\_gvimrc"
2nd user gvimrc file: "$HOME\vimfiles\gvimrc"
3rd user gvimrc file: "$VIM\_gvimrc"
system menu file: "$VIMRUNTIME\menu.vim"

For example, one good place for gvim-specific settings would be

C:\Users\MyUsername\_gvimrc

The download "gvim_9.1.0_x64_signed.exe" smells vaguely of NSIS, and
I would not put it past them to put that in C:\Program Files. Which is
fine, as the "system vimrc" will be in there. And as the user you will
only be editing the "C:\Users\MyUsername\_gvimrc" one.

Paul

Re: Set gVim permanent font in Windows 10

<uvvcpd$8bl3$1@solani.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=80972&group=alt.comp.os.windows-10#80972

  copy link   Newsgroups: alt.comp.os.windows-10 comp.editors
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: nickcine@is.invalid (Nick Cine)
Newsgroups: alt.comp.os.windows-10,comp.editors
Subject: Re: Set gVim permanent font in Windows 10
Date: Fri, 19 Apr 2024 21:28:46 -0600
Message-ID: <uvvcpd$8bl3$1@solani.org>
References: <uvuu6f$2ol0c$1@paganini.bofh.team> <uvva3e$3eg8s$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=fixed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 20 Apr 2024 03:28:46 -0000 (UTC)
Injection-Info: solani.org;
logging-data="274083"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Usenapp/0.93/l for MacOS - Full License
Cancel-Lock: sha1:QyQeHEPnbgN1GuNqTgVCJWO8lwQ=
X-User-ID: eJwFwYkBADAEBLCV/KxDnf1HaOIaHC8tPMzPD0VQomX4nKNXRMtIyXJGN1+scUU3BHmNDx0yEX4=
 by: Nick Cine - Sat, 20 Apr 2024 03:28 UTC

On Fri, 19 Apr 2024 22:42:53 -0400, Paul wrote:

> Seems like a "test" for the operator, to see if they're a Level 37 wizard or not :-)
>
> https://www.vim.org/download.php
> gvim_9.1.0_x64_signed.exe (64bit installer) <=== Unpack with 7ZIP, "Open Archive"
>
> gvimrc_example.vim
>
> To use it, copy it to
> for Unix: ~/.gvimrc
> for Amiga: s:.gvimrc
> for MS-Windows: $VIM\_gvimrc <=================== I hope that isn't C:\Program Files area :-)
> for Haiku: ~/config/settings/vim/gvimrc
> for OpenVMS: sys$login:.gvimrc
>
> set the X11 font to use <=== hahaha!
> set guifont=-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-1
>
> I wonder how they got a GUI in Windows ?
>
> "My .vimrc (Windows, GVIM)"
> https://gist.github.com/wheeyls/1114301/b1ea725788ede665902f6d4880d5078612e3adab
>
> "set guifont=courier_new:h10 <=== commented out
> set guifont=Monaco,"ProggyTinySZ",Courier\ New:h10,Courier,Lucida\ Console,Letter\ Gothic,
> \Arial\ Alternative,Bitstream\ Vera\ Sans\ Mono,OCR\ A\ Extended
>
> From this we learn (naturally actually) that there are two gvimrc files.
> The system one is in $VIM, the user one is in $HOME.
>
> https://superuser.com/questions/86246/where-should-the-vimrc-file-be-located-on-windows-7
>
> For Vim 7.4, these are the paths it looks for on Windows
>
> system vimrc file: "$VIM\vimrc"
> user vimrc file: "$HOME\_vimrc"
> 2nd user vimrc file: "$HOME\vimfiles\vimrc"
> 3rd user vimrc file: "$VIM\_vimrc"
> user exrc file: "$HOME\_exrc"
> 2nd user exrc file: "$VIM\_exrc"
> system gvimrc file: "$VIM\gvimrc"
> user gvimrc file: "$HOME\_gvimrc"
> 2nd user gvimrc file: "$HOME\vimfiles\gvimrc"
> 3rd user gvimrc file: "$VIM\_gvimrc"
> system menu file: "$VIMRUNTIME\menu.vim"
>
> For example, one good place for gvim-specific settings would be
>
> C:\Users\MyUsername\_gvimrc
>
> The download "gvim_9.1.0_x64_signed.exe" smells vaguely of NSIS, and
> I would not put it past them to put that in C:\Program Files. Which is
> fine, as the "system vimrc" will be in there. And as the user you will
> only be editing the "C:\Users\MyUsername\_gvimrc" one.

In the gVim window, I typed ":set guifont=*" which brought up the font GUI.
In the Windows gVim GUI I set the font to "Lucida Console Regular 20".

Then I entered the command ":set guifont?" which reported the naming.
guifont-Lucinda_Console:h20:cANSI:qDRAFT

I ran this command to put the font name into the document ":put =&guifont"
(which put this "Lucida_Console:h20:cANSI:qDRAFT" into the current file).

Then I cut and pasted that exact result to use in the commands below.
set guifont=Lucida_Console:h20:cANSI:qDRAFT

The hardest part is finding which is your vimrc file using ":version",
which reports a ton of vimrc files that are based on other variables.
system vimrc file: "$VIM\vimrc"
user vimrc file: "$HOME\_vimrc"
2nd user vimrc file: "$HOME\vimfiles\vimrc"
3rd user vimrc file: "$VIM\_vimrc"
user exrc file: "$HOME\_exrc"
2nd user exrc file: "$VIM\_exrc"
system gvimrc file: "$VIM\gvimrc"
user gvimrc file: "$HOME\_gvimrc"
2nd user gvimrc file: "$HOME\vimfiles\gvimrc"
3rd user gvimrc file: "$VIM\_gvimrc"
defaults file: "$VIMRUNTIME\defaults.vim"
system menu file: "$VIMRUNTIME\menu.vim"

The three variables which you need to echo are:
":echo $VIM"
":echo $HOME"
":echo $VIMRUNTIME"

And then you have to just figure out if the system vimrc file
or the user vimrc file takes precedence, by a trial & error sequence.

For example:
vim $HOME\_vimrc
if has('gui_running')
set guifont=Lucida_Console:h20:cANSI:qDRAFT
endif

This information came from https://vim.fandom.com/wiki/Change_font

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor