Re: BUG: terminal vim 9.0.1506 x64 window 10

2023-06-03 Thread Bram Moolenaar


> Of course vim can't possibly support all possible terminals
> 
> My point is different.  It's isn't working correctly on ANY of them.
> 
> see https://github.com/microsoft/terminal/issues?q=vim+in%3Atitle+

That search results in several issues, which one is this about?

This is about one product, I don't see the relation with "ANY" here.

-- 
hundred-and-one symptoms of being an internet addict:
112. You are amazed that anyone uses a phone without data...let
 alone hear actual voices.

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///  \\\
\\\sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20230603212624.3F35D1C0C30%40moolenaar.net.


Re: BUG: terminal vim 9.0.1506 x64 window 10

2023-06-03 Thread rob
And 

https://jpsoft.com/forums/threads/incompatibility-of-tcmd-30-and-vim9.11517/unread?new=1


-- 
  rob
  r...@drrob1.com


On Sat, Jun 3, 2023, at 9:20 PM, Robert Solomon wrote:
> Of course vim can't possibly support all possible terminals
> 
> My point is different.  It's isn't working correctly on ANY of them.
> 
> see https://github.com/microsoft/terminal/issues?q=vim+in%3Atitle+
> 
> On Saturday, June 3, 2023 at 4:04:44 PM UTC-4 aro...@vex.net wrote:
>> 
>> > Vim can't possibly add code to support each peculiarity of each of them.
>> > I'm not sure what generic problem exists that is not terminal-specific.
>> >
>> The early days of Unix coincided with a Cabrian explosion of physical
>> terminals. This led to the development of a database of terminal
>> attributes and controls, (the termcap file, if memory serves me
>> correctly). Reading this table was entertaining. The included comments
>> reeked of late-night struggles and triumphs over frustration.
>> 
>> > hundred-and-one symptoms of being an internet addict:
>> > 109. You actually read -- and enjoy -- lists like this.
>> >
>> Subscribing to this list is worth it just for access to Bram's signature
>> file. :-)*
> 
> 
> --
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/vim_use/b1375c2a-a441-4c1a-8c78-63f5a7bfe7een%40googlegroups.com
>  
> .

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/37ea24d3-3650-4369-bf43-c8630e4cebc0%40app.fastmail.com.


Re: BUG: terminal vim 9.0.1506 x64 window 10

2023-06-03 Thread Robert Solomon
Of course vim can't possibly support all possible terminals

My point is different.  It's isn't working correctly on ANY of them.

see https://github.com/microsoft/terminal/issues?q=vim+in%3Atitle+


On Saturday, June 3, 2023 at 4:04:44 PM UTC-4 aro...@vex.net wrote:

>
> > Vim can't possibly add code to support each peculiarity of each of them.
> > I'm not sure what generic problem exists that is not terminal-specific.
> >
> The early days of Unix coincided with a Cabrian explosion of physical
> terminals. This led to the development of a database of terminal
> attributes and controls, (the termcap file, if memory serves me
> correctly). Reading this table was entertaining. The included comments
> reeked of late-night struggles and triumphs over frustration.
>
> > hundred-and-one symptoms of being an internet addict:
> > 109. You actually read -- and enjoy -- lists like this.
> >
> Subscribing to this list is worth it just for access to Bram's signature
> file. :-)*
>
>

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/b1375c2a-a441-4c1a-8c78-63f5a7bfe7een%40googlegroups.com.


Re: BUG: terminal vim 9.0.1506 x64 window 10

2023-06-03 Thread arocker


> Vim can't possibly add code to support each peculiarity of each of them.
> I'm not sure what generic problem exists that is not terminal-specific.
>
The early days of Unix coincided with a Cabrian explosion of physical
terminals. This led to the development of a database of terminal
attributes and controls, (the termcap file, if memory serves me
correctly). Reading this table was entertaining. The included comments
reeked of late-night struggles and triumphs over frustration.

> hundred-and-one symptoms of being an internet addict:
> 109. You actually read -- and enjoy -- lists like this.
>
Subscribing to this list is worth it just for access to Bram's signature
file. :-)*

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/3255c592907b4e048bcfbde1aa29a6bb.squirrel%40webmail.vybenetworks.com.


Re: BUG: terminal vim 9.0.1506 x64 window 10

2023-06-03 Thread Bram Moolenaar


> Which program do you mean when you say the good-old windows console
> and the newer windows terminal?

The Windows console is what was originally the console in MS-Windows.
Perhaps people refer to it as command.com or cmd.exe.
AFAIK this is available on every MS-Windows installation without
additional downloads or apps.

Windows terminal is a very recent development that aims to replace the
console.  It is actively being improved.
https://apps.microsoft.com/store/detail/windows-terminal/9N0DX20HK701
AFAIK this is intended as a replacement for the console and is
officially supported by Microsoft.

> Others are reporting that vim does not work correctly in the current 
> windows terminal.  I just read in the JPSoft forum that the screen is 
> scrambled upon exiting vim when called from windows terminal or cmd.exe.  
> However, this sounds like a bug I reported ~2 yrs ago that was fixed 
> relatively quickly.

JPSoft has its own terminal, right?  There must be dozens of alternatives.
Vim can't possibly add code to support each peculiarity of each of them.
I'm not sure what generic problem exists that is not terminal-specific.

-- 
hundred-and-one symptoms of being an internet addict:
109. You actually read -- and enjoy -- lists like this.

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///  \\\
\\\sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20230603192854.3D2121C0C30%40moolenaar.net.


Re: BUG: terminal vim 9.0.1506 x64 window 10

2023-06-03 Thread Robert Solomon
Which program do you mean when you say the good-old windows console and the 
newer windows terminal?

Others are reporting that vim does not work correctly in the current 
windows terminal.  I just read in the JPSoft forum that the screen is 
scrambled upon exiting vim when called from windows terminal or cmd.exe.  
However, this sounds like a bug I reported ~2 yrs ago that was fixed 
relatively quickly.

--rob solomon


On Thursday, May 4, 2023 at 10:48:52 AM UTC-4 Bram Moolenaar wrote:

>
> > I use JPSoft's take command as by command interpreter. Now at version 
> 29. 
> > When I start vim in the terminal, it does not update the screen 
> correctly.
> > Contents from longer lines remain on screen when the file has shorter 
> lines.
>
> I don't know the "take command". Is this a kind of shell? Or is it
> like a console window, that you start Vim in?
>
> There is no good standard terminal on MS-Windows, all off them have
> their individual issues. We try to support at least the good-old
> Windows console and the newer Windows Terminal, since these are widely
> used. Making it work with all kind of alternatives is a struggle. And
> when you run Vim, the extra features that the alternative offers are
> usually irrelevant. Please consider using a standard terminal to run
> Vim in. Otherwise, report the problem to JPSoft. Since Vim works fine
> in a standard terminal, the problem very likely is on their side.
>
>
> -- 
> The fastest way to get an engineer to solve a problem is to declare that 
> the
> problem is unsolvable. No engineer can walk away from an unsolvable problem
> until it's solved.
> (Scott Adams - The Dilbert principle)
>
> /// Bram Moolenaar -- br...@moolenaar.net -- http://www.Moolenaar.net \\\
> /// \\\
> \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
> \\\ help me help AIDS victims -- http://ICCF-Holland.org ///
>

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/a78ffd08-98a4-4cb6-b45a-5a605a75ae29n%40googlegroups.com.


Re: [vim 9 script] String indexing behavior different from legacy Vim

2023-06-03 Thread Bram Moolenaar


> Sorry but,
> Out of well indexing,
> which is faster ?
> 
> 1) indexing by bytes -> legacy
> 2) indexing by characters -> vim9script

Indexing by bytes can be faster.  But the difference is probably small,
the computation of the index probably matters more.  You'll have to try
it out to know what happens in your situation.

-- 
hundred-and-one symptoms of being an internet addict:
102. When filling out your driver's license application, you give
 your IP address.

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///  \\\
\\\sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20230603160350.775771C0595%40moolenaar.net.


Re: [vim 9 script] String indexing behavior different from legacy Vim

2023-06-03 Thread Bram Moolenaar


> On 2023-06-03, Bram Moolenaar  wrote:
> >
> >> Legacy Vim script:
> >>
> >> let text = 'àbc'
> >> echo text[2]
> >>
> >> Result: 'b'
> >>
> >> Vim 9 script:
> >>
> >> const text = 'àbc'
> >> echo text[2]
> >>
> >> Result: 'c'
> >>
> >> Is the different behavior (counting chars vs bytes?) intentional?
> >
> > Yes, in Vim9 script the index is in characters.  In legacy script it is
> > in bytes.
> >
> > The help for this doesn't have it's own tag, I'll add one.
> > You can find it above ":help vim9-gotchas".
> 
> I was expecting to find it under `:help vim9-differences`, but either
> I missed the relevant item, or it's not there, in which case it could be
> added there.

Well, that's an overview, not a complete list.  There is no objective
way to decide what to put there, what is important enough.  I can add
this one, but for expressions there are more things that can matter.
Adding a link to vim9-gotchas also would be useful.

-- 
Execuses for making a mistake:
In the morning: "I didn't have enough coffee yet!"
In the afternoon: "Look at all the things that I did right!"
In the evening: "I'm too tired!"

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///  \\\
\\\sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20230603145544.246A01C0595%40moolenaar.net.


Re: [vim 9 script] String indexing behavior different from legacy Vim

2023-06-03 Thread N i c o l a s
Hi Bram,

Sorry but,
Out of well indexing,
which is faster ?

1) indexing by bytes -> legacy
2) indexing by characters -> vim9script

Thank you for your answer.
Nicolas
**
Le samedi 3 juin 2023 à 13:12:53 UTC+2, Bram Moolenaar a écrit :

>
> > Legacy Vim script:
> > 
> > let text = 'àbc'
> > echo text[2]
> > 
> > Result: 'b'
> > 
> > Vim 9 script:
> > 
> > const text = 'àbc'
> > echo text[2]
> > 
> > Result: 'c'
> > 
> > Is the different behavior (counting chars vs bytes?) intentional?
>
> Yes, in Vim9 script the index is in characters. In legacy script it is
> in bytes.
>
> The help for this doesn't have it's own tag, I'll add one.
> You can find it above ":help vim9-gotchas".
>
> -- 
> hundred-and-one symptoms of being an internet addict:
> 101. U can read htis w/o ny porblm and cant figur eout Y its evn listd.
>
> /// Bram Moolenaar -- br...@moolenaar.net -- http://www.Moolenaar.net \\\
> /// \\\
> \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
> \\\ help me help AIDS victims -- http://ICCF-Holland.org ///
>

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/8960a096-de72-4872-8f90-fd130fa9f922n%40googlegroups.com.


Re: [vim 9 script] String indexing behavior different from legacy Vim

2023-06-03 Thread Lifepillar
On 2023-06-03, Lifepillar  wrote:
>> Yes, in Vim9 script the index is in characters.  In legacy script it is
>> in bytes.
>>
>> The help for this doesn't have it's own tag, I'll add one.
>> You can find it above ":help vim9-gotchas".
>
> I was expecting to find it under `:help vim9-differences`, but either
> I missed the relevant item, or it's not there, in which case it could be
> added there.

Sorry, I read too fast. Maybe, a reference "see also vim9-gotchas" might
be added under vim9-differences, which seems to me the obvious place to
go (and probably easier to search than "gotchas").

Btw, despite the change having caused me some headache debugging one of
my scripts, I think that it makes a lot of sense for a text editor
scripting language to index strings by characters, so I welcome the
change!

Life.

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/u5f888%24151t%243%40ciao.gmane.io.


Re: [vim 9 script] String indexing behavior different from legacy Vim

2023-06-03 Thread Lifepillar
On 2023-06-03, Bram Moolenaar  wrote:
>
>> Legacy Vim script:
>>
>> let text = 'àbc'
>> echo text[2]
>>
>> Result: 'b'
>>
>> Vim 9 script:
>>
>> const text = 'àbc'
>> echo text[2]
>>
>> Result: 'c'
>>
>> Is the different behavior (counting chars vs bytes?) intentional?
>
> Yes, in Vim9 script the index is in characters.  In legacy script it is
> in bytes.
>
> The help for this doesn't have it's own tag, I'll add one.
> You can find it above ":help vim9-gotchas".

I was expecting to find it under `:help vim9-differences`, but either
I missed the relevant item, or it's not there, in which case it could be
added there.

Thanks,
Life.

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/u5f7o1%24151t%241%40ciao.gmane.io.


Re: [vim 9 script] String indexing behavior different from legacy Vim

2023-06-03 Thread Bram Moolenaar


> Legacy Vim script:
> 
> let text = 'àbc'
> echo text[2]
> 
> Result: 'b'
> 
> Vim 9 script:
> 
> const text = 'àbc'
> echo text[2]
> 
> Result: 'c'
> 
> Is the different behavior (counting chars vs bytes?) intentional?

Yes, in Vim9 script the index is in characters.  In legacy script it is
in bytes.

The help for this doesn't have it's own tag, I'll add one.
You can find it above ":help vim9-gotchas".

-- 
hundred-and-one symptoms of being an internet addict:
101. U can read htis w/o ny porblm and cant figur eout Y its evn listd.

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///  \\\
\\\sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20230603111243.9935E1C0595%40moolenaar.net.


Re: [vim 9 script] String indexing behavior different from legacy Vim

2023-06-03 Thread Lifepillar
On 2023-06-03, Lifepillar  wrote:
> On 2023-06-03, Lifepillar  wrote:

> Mmh, even strpart(), which is supposed to count bytes, gives the same
> result:

Forget this: strpart() is fine. I have trouble just with indexing.

Life.


-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/u5f56r%24q6q%242%40ciao.gmane.io.


Re: [vim 9 script] String indexing behavior different from legacy Vim

2023-06-03 Thread Lifepillar
On 2023-06-03, Lifepillar  wrote:
> Legacy Vim script:
>
> let text = 'àbc'
> echo text[2]
>
> Result: 'b'
>
> Vim 9 script:
>
> const text = 'àbc'
> echo text[2]
>
> Result: 'c'
>
> Is the different behavior (counting chars vs bytes?) intentional?

Mmh, even strpart(), which is supposed to count bytes, gives the same
result:

echo strpart(text, 2, 1)

is 'b' in legacy Vim, but 'c' in Vim 9 script.

Life.

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/u5f4fs%24q6q%241%40ciao.gmane.io.


[vim 9 script] String indexing behavior different from legacy Vim

2023-06-03 Thread Lifepillar
Legacy Vim script:

let text = 'àbc'
echo text[2]

Result: 'b'

Vim 9 script:

const text = 'àbc'
echo text[2]

Result: 'c'

Is the different behavior (counting chars vs bytes?) intentional?

Thanks,
Life.



-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/u5f43j%2417tv%243%40ciao.gmane.io.


Re: The package you uploaded (vim-noweb.tgz) is empty

2023-06-03 Thread Lifepillar
On 2023-06-02, Bram Moolenaar  wrote:

> You could try using another browser.

I have tried with Safari, Brave, and LibreWolf (~Firefox) on macOS to no
avail. I have taken care to disable ad blockers and, afaics, only
cross-site cookies are blocked.

Life.

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/u5f3vd%2417tv%242%40ciao.gmane.io.