Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Have you reconsidered a computer career?


computers / comp.editors / Vim error msg when opening .ini file

SubjectAuthor
* Vim error msg when opening .ini filerj
+- Re: Vim error msg when opening .ini fileAndreas Kohlbach
`* Re: Vim error msg when opening .ini fileharon
 `* Re: Vim error msg when opening .ini filerj
  `- SOLVED: Re: Vim error msg when opening .ini filerj

1
Vim error msg when opening .ini file

<ublg77$41v$1@reader2.panix.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=30&group=comp.editors#30

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!.POSTED.2600:4041:44a8:3400:11e7:d9a:ab9b:d323!not-for-mail
From: rj@panix.com.invalid (rj)
Newsgroups: comp.editors
Subject: Vim error msg when opening .ini file
Date: Thu, 17 Aug 2023 12:00:38 -0400
Organization: Disorganization
Message-ID: <ublg77$41v$1@reader2.panix.com>
Injection-Date: Thu, 17 Aug 2023 16:00:39 -0000 (UTC)
Injection-Info: reader2.panix.com; posting-host="2600:4041:44a8:3400:11e7:d9a:ab9b:d323";
logging-data="4159"; mail-complaints-to="abuse@panix.com"
User-Agent: slrn/pre1.0.4-9 (Linux)
Mail-Copies-To: nobody
 by: rj - Thu, 17 Aug 2023 16:00 UTC

Vim shows the following long error message when I
open a file that has a dot-ini (.ini) file extension:

Error detected while processing
/usr/share/vim/vimrc[25]../usr/share/vim/vim90/syntax/syntax.vim[44]..BufRead
Autocommands for "*~"..BufRead Autocommands for "*.ini"..FileType
Autocommands for "*"..Syntax Autocommands for "*"..function
<SNR>3_SynSet[25]..script /usr/share/vim/vim90/syntax/dosini.vim: line 28:
E10: \ should be followed by /, ? or &

Implementing that suggestion at the end of the message had no effect. (Or,
rather, it made the error message even longer and more incrutable.)

--> vim --version VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Aug 15 2023
20:47:29) Included patches: 1-1713 Modified by team+vim@tracker.debian.org
Compiled by team+vim@tracker.debian.org Huge version without GUI. Features
included (+) or not (-): +acl +file_in_path +mouse_urxvt
-tag_any_white +arabic +find_in_path +mouse_xterm
-tcl +autocmd +float +multi_byte
+termguicolors +autochdir +folding +multi_lang
+terminal -autoservername -footer -mzscheme
+terminfo -balloon_eval +fork() +netbeans_intg
+termresponse +balloon_eval_term +gettext +num64
+textobjects -browse -hangul_input +packages
+textprop ++builtin_terms +iconv +path_extra +timers
+byte_offset +insert_expand -perl +title +channel
+ipv6 +persistent_undo -toolbar +cindent +job
+popupwin +user_commands -clientserver +jumplist
+postscript +vartabs -clipboard +keymap +printer
+vertsplit +cmdline_compl +lambda +profile
+vim9script +cmdline_hist +langmap -python
+viminfo +cmdline_info +libcall +python3
+virtualedit +comments +linebreak +quickfix
+visual +conceal +lispindent +reltime
+visualextra +cryptv +listcmds +rightleft
+vreplace +cscope +localmap -ruby
+wildignore +cursorbind -lua +scrollbind
+wildmenu +cursorshape +menu +signs +windows
+dialog_con +mksession +smartindent +writebackup +diff
+modify_fname +sodium -X11 +digraphs +mouse
-sound -xfontset -dnd -mouseshape +spell
-xim -ebcdic +mouse_dec +startuptime -xpm
+emacs_tags +mouse_gpm +statusline -xsmp +eval
-mouse_jsbterm -sun_workshop -xterm_clipboard +ex_extra
+mouse_netterm +syntax -xterm_save +extra_search
+mouse_sgr +tag_binary -farsi -mouse_sysmouse
-tag_old_static system vimrc file: "$VIM/vimrc" user vimrc file:
"$HOME/.vimrc" 2nd user vimrc file: "~/.vim/vimrc" user exrc file:
"$HOME/.exrc" defaults file: "$VIMRUNTIME/defaults.vim" fall-back for $VIM:
"/usr/share/vim" Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H
-Wdate-time -g -O2
-ffile-prefix-map=/build/vim-9Zy3tT/vim-9.0.0749+really.v9.0.1713=.
-flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects
-fstack-protector-strong -Wformat -Werror=format-security -D_REENTRANT
-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 Linking: gcc -Wl,-Bsymbolic-functions
-flto=auto -ffat-lto-objects -flto=auto -Wl,-z,relro -Wl,-z,now
-Wl,--as-needed -o vim -lm -ltinfo -lselinux -lsodium -lacl -lattr -lgpm
-L/usr/lib/python3.10/config-3.10-x86_64-linux-gnu -lpython3.10 -lcrypt
-ldl -lm -lm```

:set runtimepath? shows:

runtimepath=~/.vim,/var/lib/vim/addons,/etc/vim,/usr/share/vim/vimfiles,
/usr/share/vim/vim90/,/usr/share/vim/vimfiles/after,/etc/vim/after,
/var/lib/vim/addons/after,~/.vim/after

I have vim-plug, the vim plugin manager, in ~/.vim/autoload/plug.vim but no
plugins currently installed,

How can I get Vim to open .ini files without showing error message(s)?

Thank you for reading.

Re: Vim error msg when opening .ini file

<877cptjga2.fsf@usenet.ankman.de>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=34&group=comp.editors#34

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ank@spamfence.net (Andreas Kohlbach)
Newsgroups: comp.editors
Subject: Re: Vim error msg when opening .ini file
Date: Thu, 17 Aug 2023 21:22:29 -0400
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <877cptjga2.fsf@usenet.ankman.de>
References: <ublg77$41v$1@reader2.panix.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="82b2e32074fc4c3ce8de3a0dc639c199";
logging-data="4178442"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18grG+5jGi1LQi26O/Zcbud"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:cLdUKYJCvP/wAjfKWy9bXFoh3us=
sha1:/MVAb9fbaXMFMBWronWiCF7RvM4=
X-No-Archive: Yes
 by: Andreas Kohlbach - Fri, 18 Aug 2023 01:22 UTC

On Thu, 17 Aug 2023 12:00:38 -0400, rj wrote:
>
> Vim shows the following long error message when I
> open a file that has a dot-ini (.ini) file extension:
>
>
> Error detected while processing
> /usr/share/vim/vimrc[25]../usr/share/vim/vim90/syntax/syntax.vim[44]..BufRead
> Autocommands for "*~"..BufRead Autocommands for "*.ini"..FileType
> Autocommands for "*"..Syntax Autocommands for "*"..function
> <SNR>3_SynSet[25]..script /usr/share/vim/vim90/syntax/dosini.vim: line 28:
> E10: \ should be followed by /, ? or &

[...]

> I have vim-plug, the vim plugin manager, in ~/.vim/autoload/plug.vim but no
> plugins currently installed,
>
>
> How can I get Vim to open .ini files without showing error message(s)?

Try temporarily to remove (back it up somewhere)

/usr/share/vim/vim90/syntax/dosini.vim

If the message persists, may be the error comes from
~/.vim/autoload/plug.vim thus removing (backupping) it too might help.

Depending on the results, investigate these files before writing them back.
--
Andreas

Re: Vim error msg when opening .ini file

<d36ddcdf-acc6-464e-aea5-ee97249058f0n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=38&group=comp.editors#38

  copy link   Newsgroups: comp.editors
X-Received: by 2002:a05:620a:270f:b0:76d:8cc1:559d with SMTP id b15-20020a05620a270f00b0076d8cc1559dmr1827qkp.15.1692391849861;
Fri, 18 Aug 2023 13:50:49 -0700 (PDT)
X-Received: by 2002:a05:6a00:1390:b0:687:55cb:efae with SMTP id
t16-20020a056a00139000b0068755cbefaemr130257pfg.6.1692391849191; Fri, 18 Aug
2023 13:50:49 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.editors
Date: Fri, 18 Aug 2023 13:50:48 -0700 (PDT)
In-Reply-To: <ublg77$41v$1@reader2.panix.com>
Injection-Info: google-groups.googlegroups.com; posting-host=90.146.206.218; posting-account=NChtpQgAAADZZBkvnZgRifl6254mwKED
NNTP-Posting-Host: 90.146.206.218
References: <ublg77$41v$1@reader2.panix.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d36ddcdf-acc6-464e-aea5-ee97249058f0n@googlegroups.com>
Subject: Re: Vim error msg when opening .ini file
From: anton.sharonov@gmail.com (haron)
Injection-Date: Fri, 18 Aug 2023 20:50:49 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 105
 by: haron - Fri, 18 Aug 2023 20:50 UTC

On Thursday, August 17, 2023 at 6:00:42 PM UTC+2, rj wrote:
> Vim shows the following long error message when I
> open a file that has a dot-ini (.ini) file extension:
>
>
> Error detected while processing
> /usr/share/vim/vimrc[25]../usr/share/vim/vim90/syntax/syntax.vim[44]..BufRead
> Autocommands for "*~"..BufRead Autocommands for "*.ini"..FileType
> Autocommands for "*"..Syntax Autocommands for "*"..function
> <SNR>3_SynSet[25]..script /usr/share/vim/vim90/syntax/dosini.vim: line 28:
> E10: \ should be followed by /, ? or &
>
>
> Implementing that suggestion at the end of the message had no effect. (Or,
> rather, it made the error message even longer and more incrutable.)
>
>
> --> vim --version VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Aug 15 2023
> 20:47:29) Included patches: 1-1713 Modified by team...@tracker.debian.org
> Compiled by team...@tracker.debian.org Huge version without GUI. Features
> included (+) or not (-): +acl +file_in_path +mouse_urxvt
> -tag_any_white +arabic +find_in_path +mouse_xterm
> -tcl +autocmd +float +multi_byte
> +termguicolors +autochdir +folding +multi_lang
> +terminal -autoservername -footer -mzscheme
> +terminfo -balloon_eval +fork() +netbeans_intg
> +termresponse +balloon_eval_term +gettext +num64
> +textobjects -browse -hangul_input +packages
> +textprop ++builtin_terms +iconv +path_extra +timers
> +byte_offset +insert_expand -perl +title +channel
> +ipv6 +persistent_undo -toolbar +cindent +job
> +popupwin +user_commands -clientserver +jumplist
> +postscript +vartabs -clipboard +keymap +printer
> +vertsplit +cmdline_compl +lambda +profile
> +vim9script +cmdline_hist +langmap -python
> +viminfo +cmdline_info +libcall +python3
> +virtualedit +comments +linebreak +quickfix
> +visual +conceal +lispindent +reltime
> +visualextra +cryptv +listcmds +rightleft
> +vreplace +cscope +localmap -ruby
> +wildignore +cursorbind -lua +scrollbind
> +wildmenu +cursorshape +menu +signs +windows
> +dialog_con +mksession +smartindent +writebackup +diff
> +modify_fname +sodium -X11 +digraphs +mouse
> -sound -xfontset -dnd -mouseshape +spell
> -xim -ebcdic +mouse_dec +startuptime -xpm
> +emacs_tags +mouse_gpm +statusline -xsmp +eval
> -mouse_jsbterm -sun_workshop -xterm_clipboard +ex_extra
> +mouse_netterm +syntax -xterm_save +extra_search
> +mouse_sgr +tag_binary -farsi -mouse_sysmouse
> -tag_old_static system vimrc file: "$VIM/vimrc" user vimrc file:
> "$HOME/.vimrc" 2nd user vimrc file: "~/.vim/vimrc" user exrc file:
> "$HOME/.exrc" defaults file: "$VIMRUNTIME/defaults.vim" fall-back for $VIM:
> "/usr/share/vim" Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H
> -Wdate-time -g -O2
> -ffile-prefix-map=/build/vim-9Zy3tT/vim-9.0.0749+really.v9.0.1713=.
> -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects
> -fstack-protector-strong -Wformat -Werror=format-security -D_REENTRANT
> -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 Linking: gcc -Wl,-Bsymbolic-functions
> -flto=auto -ffat-lto-objects -flto=auto -Wl,-z,relro -Wl,-z,now
> -Wl,--as-needed -o vim -lm -ltinfo -lselinux -lsodium -lacl -lattr -lgpm
> -L/usr/lib/python3.10/config-3.10-x86_64-linux-gnu -lpython3.10 -lcrypt
> -ldl -lm -lm```
>
>
> :set runtimepath? shows:
>
> runtimepath=~/.vim,/var/lib/vim/addons,/etc/vim,/usr/share/vim/vimfiles,
> /usr/share/vim/vim90/,/usr/share/vim/vimfiles/after,/etc/vim/after,
> /var/lib/vim/addons/after,~/.vim/after
>
>
> I have vim-plug, the vim plugin manager, in ~/.vim/autoload/plug.vim but no
> plugins currently installed,
>
>
> How can I get Vim to open .ini files without showing error message(s)?
>
> Thank you for reading.

Strange. Neither of syntax/dosini.vim files in vim-runtime debian packages - buster, bullseye, bookworm, trixie, sid - contain '\' character in the line 28. This appear in the recent git versions of that file but should not reach debian packages yet ? (Yet may be I do not understand as well update mechanisms of debian. Anyway, with recent git version of that file I cannot reproduce reported problem - opensuse user here). If you can share the content of that file: /usr/share/vim/vim90/syntax/dosini.vim, may be that will lead to something... Another advice - post the question in vim_use google group, that would expose your question to much wider selection of experts probably.

With best regards, Anton

Re: Vim error msg when opening .ini file

<ubrhpj$nd9$1@reader2.panix.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=44&group=comp.editors#44

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!.POSTED.2600:4041:44a8:3400:5f59:46ed:fd0e:abde!not-for-mail
From: rj@panix.com.invalid (rj)
Newsgroups: comp.editors
Subject: Re: Vim error msg when opening .ini file
Date: Sat, 19 Aug 2023 19:04:12 -0400
Organization: Disorganization
Message-ID: <ubrhpj$nd9$1@reader2.panix.com>
References: <ublg77$41v$1@reader2.panix.com>
<d36ddcdf-acc6-464e-aea5-ee97249058f0n@googlegroups.com>
Injection-Date: Sat, 19 Aug 2023 23:04:19 -0000 (UTC)
Injection-Info: reader2.panix.com; posting-host="2600:4041:44a8:3400:5f59:46ed:fd0e:abde";
logging-data="23977"; mail-complaints-to="abuse@panix.com"
User-Agent: slrn/pre1.0.4-9 (Linux)
Mail-Copies-To: nobody
 by: rj - Sat, 19 Aug 2023 23:04 UTC

On Fri, 18 Aug 2023 13:50:48 -0700 (PDT),
haron <anton.sharonov@gmail.com> wrote:

> If you can share the content of that file:
> /usr/share/vim/vim90/syntax/dosini.vim,
> may be that will lead to something.

------------------------------------------------------------
1 " Vim syntax file
2 " Language: Configuration File (ini file) for MSDOS/MS Windows
3 " Version: 2.3
4 " Original Author: Sean M. McKee <mckee@misslink.net>
5 " Previous Maintainer: Nima Talebi <nima@it.net.au>
6 " Current Maintainer: Hong Xu <hong@topbug.net>
7 " Homepage: http://www.vim.org/scripts/script.php?script_id=3747
8 " Repository: https://github.com/xuhdev/syntax-dosini.vim
9 " Last Change: 2023 Jun 27
10
11
12 " quit when a syntax file was already loaded
13 if exists("b:current_syntax")
14 finish
15 endif
16
17 " shut case off
18 syn case ignore
19
20 syn match dosiniLabel "^.\{-}\ze\s*=" nextgroup=dosiniNumber,dosiniValue
21 syn match dosiniValue "=\zs.*"
22 syn match dosiniNumber "=\zs\s*\d\+\s*$"
23 syn match dosiniNumber "=\zs\s*\d*\.\d\+\s*$"
24 syn match dosiniNumber "=\zs\s*\d\+e[+-]\=\d\+\s*$"
25 syn region dosiniHeader start="^\s*\[" end="\]"
26 syn match dosiniComment "^[#;].*$"
27 syn region dosiniSection start="\s*\[.*\]" end="\ze\s*\[.*\]" fold
28 \ contains=dosiniLabel,dosiniValue,dosiniNumber,dosiniHeader,dosiniComment
29
30 " Define the default highlighting.
31 " Only when an item doesn't have highlighting yet
32
33 hi def link dosiniNumber Number
34 hi def link dosiniHeader Special
35 hi def link dosiniComment Comment
36 hi def link dosiniLabel Type
37 hi def link dosiniValue String
38
39
40 let b:current_syntax = "dosini"
41
42 " vim: sts=2 sw=2 et
------------------------------------------------------------

Another advice - post the question in
vim_use google group,

Done.

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

<ubtl27$7mp$1@reader2.panix.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=46&group=comp.editors#46

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!.POSTED.2600:4041:44a8:3400:4e48:e701:e860:6ba9!not-for-mail
From: rj@panix.com.invalid (rj)
Newsgroups: comp.editors
Subject: SOLVED: Re: Vim error msg when opening .ini file
Date: Sun, 20 Aug 2023 14:12:23 -0400
Organization: Disorganization
Message-ID: <ubtl27$7mp$1@reader2.panix.com>
References: <ublg77$41v$1@reader2.panix.com>
<d36ddcdf-acc6-464e-aea5-ee97249058f0n@googlegroups.com>
<ubrhpj$nd9$1@reader2.panix.com>
Injection-Date: Sun, 20 Aug 2023 18:12:23 -0000 (UTC)
Injection-Info: reader2.panix.com; posting-host="2600:4041:44a8:3400:4e48:e701:e860:6ba9";
logging-data="7897"; mail-complaints-to="abuse@panix.com"
User-Agent: slrn/pre1.0.4-9 (Linux)
Mail-Copies-To: nobody
 by: rj - Sun, 20 Aug 2023 18:12 UTC

On Sat, 19 Aug 2023 19:04:12 -0400, rj <rj@panix.com.invalid> wrote:
> On Fri, 18 Aug 2023 13:50:48 -0700 (PDT),
> haron <anton.sharonov@gmail.com> wrote:
>
>> If you can share the content of that file:
>> /usr/share/vim/vim90/syntax/dosini.vim,
>> may be that will lead to something.

This problem has been solved by replacing the
/usr/share/vim/vim90/syntax/dosini.vim
file dated *2023 Jun 27* with the one dated *2023 Aug 20*
posted by Christian Brabandt here:
<https://groups.google.com/g/vim_use/c/9zccgo_RIqM>

Thanks, Christian.


computers / comp.editors / Vim error msg when opening .ini file

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor