Sunday, August 20, 2023

Re: SOLVED: Vim error message when opening .ini file

I was just assuming that, for example, the string"DARK_BLUE" in the line 
"DARK_BLUE = 0,55,218" was supposed to actually be dark blue, and the same for the other color-names in the file.

I'm actually  glad to to hear that that notion wrong.  I'm not using a standard colorscheme, I've set all (or most) of my color-groups individually in my .vimrc, though I'm still working on my whole color setup..

On Sunday, August 20, 2023 at 3:43:56 PM UTC-4 Enan Ajmain wrote:
On Sun, 20 Aug 2023 11:51:23 -0700 (PDT)
"Melvin Q. Watchpocket" <watch...@gmail.com> wrote:
> On Sunday, August 20, 2023 at 2:42:01 PM UTC-4 Enan Ajmain wrote:
> > Look at Windows Terminal colortool schemes and see if Vim renders it
> > with proper colors:
> > https://github.com/microsoft/terminal/blob/d28b6bf1f2c5a0078e85fe68b3e7ca4c167c4223/src/tools/ColorTool/schemes/campbell.ini
>
> All the color names, to the left of the equal signs and numbers, are green,
> everything in brackets is orange. clearly not the proper colors.

How did you come to that conclusion? AFAI see, that seems correct. The
syntax item to the left of equal sign is dosiniLabel, to the right of
equal sign is dosiniValue, and in brackets is dosiniHeader. Your color
scheme determines what the color is for each of these syntax items.

--
Enan

> Shouldn't the dosini.vim file have fixed that?

> On Sunday, August 20, 2023 at 2:42:01___PM UTC-4 Enan Ajmain wrote:
>
> > On Sun, 20 Aug 2023 10:56:26 -0700 (PDT)
> > "Melvin Q. Watchpocket" <watch...@gmail.com> wrote:
> > > On Sunday, August 20, 2023 at 1:40:32 PM UTC-4 Christian Brabandt wrote:
> > > [...]
> > > > this does not seem to be a typical ini file. Not sure why you are using
> > > > the .ini file extension.
> > >
> > > I'm runing Steve Gibson's DNSBench program under wine.
> > > https://www.grc.com/dns/benchmark.htm
> > >
> > > It automatically creates a custom list of nearby DNS servers *as a .ini
> > > file* and puts it in the same directory as the program.
> >
> > ini files _should_ look similar to toml files. But I have seen many
> > Windows software use ini files to store user configuration, without
> > adhering to general ini format. I myself have done it (if only because
> > I have seen others do it). Don't know what the history of this misuse
> > is.
> >
> > > Before this, I probably have never before opened a .ini file in Vim.
> >
> > Look at Windows Terminal colortool schemes and see if Vim renders it
> > with proper colors:
> >
> > https://github.com/microsoft/terminal/blob/d28b6bf1f2c5a0078e85fe68b3e7ca4c167c4223/src/tools/ColorTool/schemes/campbell.ini
> >
> > --
> > Enan
> >
> > > On Sunday, August 20, 2023 at 1:40:32___PM UTC-4 Christian Brabandt
> > wrote:
> > >
> > > >
> > > > On So, 20 Aug 2023, Melvin Q. Watchpocket wrote:
> > > >
> > > > > OK! This works!
> > > > > I've replaced the old dosini.vim file with yours posted above.
> > > >
> > > > Great to hear.
> > > >
> > > > >
> > > > > Using this file now as my /usr/share/vim/vim90/syntax/dosini.vim
> > file, I
> > > > can open a .ini file WITHOUT getting any error messages.
> > > > >
> > > > > Thank you, Christian!
> > > > >
> > > > > One question: should I be seeing some syntax coloring in a .ini file
> > > > like the one I've opened in Vim? Here is the file, which appears in
> > "black
> > > > & white":
> > > > >
> > > > > 1 127.0.0.53 localhost
> > > >
> > > > 2 4.2.2.2 b.resolvers.level3.net
> > > > > 3 4.2.2.4 d.resolvers.level3.net
> > > > > 4 4.2.2.6 f.resolvers.level3.net
> > > > > 5 64.69.98.35 spr-resolv3-sun.onecommunications.net
> > > > > 6 64.80.255.251 ··· no official Internet DNS name ···
> > > > > 7 64.215.98.148 dns1.lon.gblx.net
> > > > > 8 66.6.65.5 ··· no official Internet DNS name ···
> > > > > 9 66.28.0.45 res1.dns.cogentco.com
> > > > > 10 66.92.159.2 dns.wdc1.speakeasy.net
> > > > > 11 66.109.229.4 dns3.dejazzd.com
> > > > > 12 66.153.50.66 dns1-nyc.paetec.net
> > > > > 13 68.237.161.12 nsnyny01.verizon.net
> > > > > 14 74.82.42.42 ordns.he.net
> > > > > 15 129.250.35.250 x.ns.gin.ntt.net
> > > > > 16 129.250.35.251 y.ns.gin.ntt.net
> > > > > 17 151.197.0.37 world4.bellatlantic.net
> > > > > 18 151.198.0.38 nsnwrk.bellatlantic.net
> > > > > 19 151.198.0.39 home5.bellatlantic.net
> > > > > 20 151.201.0.38 nspitt.bellatlantic.net
> > > >
> > > > this does not seem to be a typical ini file. Not sure why you are using
> > > > the .ini file extension.
> > > >
> > > > Best,
> > > > Christian
> > > > --
> > > > You will be winged by an anti-aircraft battery.
> > > >
> > >
> >
>

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/74b3557f-c461-4d8c-813e-f09ce7ec0046n%40googlegroups.com.

No comments: