Friday, September 30, 2022

vim-plug commands (PlugUpdate, PlugInstall) broken due to vim9 patch or $HOME

Hi,

It's been several months that I switched to vim9script and the fact is that historical use of vim-plug is broken.  https://github.com/junegunn/vim-plug

No more command from this plugin are recognized.


It sounds like some patch cause issue or $HOME that is effectively void in my configuration does not return good path for startup : $HOME/vimfile returns -9223372036854775808.


I saw recent post on $HOME without seeing a workaround or solution.

Thank you
NV


--
--
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/7b4b407b-f155-4eac-b6ea-22271b9b750fn%40googlegroups.com.

vim - re-register server after X reboot

Hi,

I have MS-Windows as my desktop PC, working remotely on a Linux box. So I have X server running on Windows. Although I use vim in a terminal window, I still need X-Server, as VIM uses it for server registration, and I use Vim client-server functionality a lot.

My problems begin when I have to restart X server. Then the original VIM registration is gone on the X server, and client-server functionality breaks. So far, the only way out of this is to restart VIM, and I would rather avoid this. Yes, I am aware about saving sessions etc, but I also run a lot of shells from inside Vim, so this is not what I am looking for...

What I am looking for is the ability to re-register vim as a server without quitting it. So far, I only found the function remote_startserver(). Unfortunately, this function can only be called if the vim instance has not been a server yet, which is not my case. Maybe I would be able to run it again if I could reset v:servername variable, but it is read-only :(

Any help would be appreciated.

Regards,

Alex

--
--
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/ef1f90c5-3790-449c-8df6-2a8b2a0004a2n%40googlegroups.com.

Thursday, September 29, 2022

Re: Gvim taking a minute or more to start

I've been running Vim with the HOME environment variable set for a couple of weeks now and it's remained consistently fast to start up.  As a test I went back to unsetting $HOME and it went back to being very slow to start, so there's definitely some combination of the way I've got vim set up (the lack of any configuration in %USERPROFILE%, the directory structure with c:\vim\vimfiles, c:\vim\runtime and c:\vim\gvim.exe) and the lack of a HOME environment variable that makes gvim decide to go extremely slowly.  I really like having the file structure as it is as I can have a copy of c:\vim (automatically synchronised) on a work network drive and if I have to use someone else's PC temporarily, it runs off the network drive with all of my configuration (albeit a bit slower due to the lack of $HOME and the fact it's loading everything over the network).

Having HOME set is a bit of a pain to be honest.  I tried just setting it to /home/al (as expected by cygwin, and set by cygwin if it's not set in the global environment), but that made TortoiseHg have a flap due to there being a cygwin symbolic link .hgrc in cygwin's /home/al, which TortoiseHg didn't understand.  If I set it to anything other than /home/al, cygwin decided that the $HOME location was my new home directory and ignored all my configuration.

I ended up with HOME set somewhere suitably random and with a whole load of edited cygwin startup stuff that made sure HOME was set to /home/al in cygwin regardless of what Windows had set in the global environment.

It would have been much easier if Vim started properly without $HOME set, but I guess that's not going to be an easy thing to fix.  At least it works now.

Al

--
--
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/CAOaJ26T%3DA35qo8o-4Ni9o2888QSnApwagsCJkWcFtEH%3DLy%2ByKw%40mail.gmail.com.

Wednesday, September 28, 2022

Book on Vim 9?

Accepting that it is a bit early to have anything published, does anybody know of any books that are in the works for the new Vim 9?

Thank you.

--
--
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/7c4a30b7-9d5c-4381-b1f1-67272961deaen%40googlegroups.com.

Re: win10: another clash w/ JPSoft's tcc

Good points. 
In Windows 11 you can now tell the OS to use the new Windows Terminal as the default, which might make a difference if that is what is happening with tcc. Of course it may not be worth upgrading to 11 just to see if that fixes the problem. If tcc supplies it's own terminal software, it could be unfixable by the user.

-- Steve

On Wed, Sep 28, 2022, 12:32 AM Andrew Bernard <andrew.bernard@gmail.com> wrote:
By coincidence today I suspected this mat be autoindent as well.

JPSoft tcc is an app that provides a command line interface to Windows,
with added extras. But it you think about it, CMD is also an app, as is
Powershell.

Why not try running in Powershell and see what happens? Or even CMD?

Andrew


On 28/09/2022 3:45 pm, Dominique Pellé wrote:
> Steve wrote
>
>> My best guess would be that it's vim auto indent mode acting up
>> with the way tcc is entering that text. You could try turning off
>> auto indent in your settings but adding the line:
>>
>> set noai
>>
>> In your .vimrc file. At least it will confirm whether that is the problem or not.
> It does not seem to be the issue, since even the
> Ex command line prompt is shifted when I look
> at the screenshot.
>
> To me, it looks like a bug in the terminal.
> I searched for "JPSoft's tcc".  I'm not familiar
> with it, but it looks like a shell rather than a
> terminal if I read https://jpsoft.com/products/tcc-le.html
>
> So can't you run tcc inside a better terminal than
> the old Windows terminal (which is presumably
> what you're using)?
>
> Or is JPSoft's tcc combining both functionalities of a
> terminal and a shell? That would be odd, but in the
> Windows world it would not surprise me.
>
> Regards
> Dominique
>

--
--
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 a topic in the Google Groups "vim_use" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_use/lB5ua9i0tMc/unsubscribe.
To unsubscribe from this group and all its topics, 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/7df2d7a6-3931-7413-ab1f-49d58368ed6d%40gmail.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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CADPQDNJvwq7StGBptPP_h0HVDyP_fcP%2B49VoMJXuPJZqw6HPww%40mail.gmail.com.

Re: Error "Pattern found in every line". I expect to get "Pattern not found"

It's correct. You file no only contains one line 'aaa'. There is nothing
that is not 'aaa', so nothing to print use :v. The pattern 'aaa' is in
every line, all of one line. That is expected behaviour, though it can
take a while to wrap your head around, but trying to list lines are not
that single line in a single line file is a degenerate case.

Andrew


--
--
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/cb20fdee-60fc-5507-3a22-7418b4762bff%40gmail.com.

Re: Error "Pattern found in every line". I expect to get "Pattern not found"

Ahhh... last paragraph should be:
Just like at:
:g/ccc/p    --> command "g" instead of "v"
Pattern not found: ccc

--
--
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/0de46e73-fdda-46f9-80f8-8fe552419e10n%40googlegroups.com.

Error "Pattern found in every line". I expect to get "Pattern not found"

On latest gVim development 9.0612 downloaded from https://github.com/vim/vim-win32-installer/releases/latest on Windows 10.

Text file:
aaa
bbb


Try to find out all values not maching "aaa"
:v/aaa/p
It outputs:
bbb

So far as expected. Now from text file delete line "bbb" so only line "aaa" exits.
Repeat last command:
:v/aaa/p
It outputs:
Pattern found in every line: aaa

Shouldn't there be:
Pattern not found: aaa

Just like at:
:v/ccc/p
Pattern not found: ccc

--
--
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/95808ae1-35f1-4e83-8a4a-2d06f22c4cc5n%40googlegroups.com.

Re: Reply to my own post didn't register

On Mi, 28 Sep 2022, Enan Ajmain wrote:

> I posted a new conversation with the title: "termguicolors in Windows
> Terminal outputs wrong color." I created it with the web interface of
> Google Groups. Then I sent a reply to my own post; this time I did it
> with email. But in the web interface I see that my reply wasn't
> registered.

Because the first mail needs to be manually approved. I just did that
now.

Best,
Christian
--
Um einen dauerhaften Frieden zu erreichen, muß man falsche
Entwicklungen rechtzeitig anhalten, ohne von einer Kriegs-Hysterie
erfaßt zu werden.
-- Bernard-Henri Levy

--
--
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/20220928073710.GA1941709%40256bit.org.

Reply to my own post didn't register

I posted a new conversation with the title: "termguicolors in Windows
Terminal outputs wrong color." I created it with the web interface of
Google Groups. Then I sent a reply to my own post; this time I did it
with email. But in the web interface I see that my reply wasn't
registered.

I haven't used Google Groups extensively before. The mailing lists I'm a
part of support replying with emails (as does Google Groups according to
their own manuals [1]). (And the emails forwarded to me from this list
are all HTML. But that's not why I'm writing this email. Just wanted to
note.)

I realize this isn't related to vim-use, but I haven't faced this issue
elsewhere, so I hope everyone will consider.


[1]: https://support.google.com/groups/answer/1046523?hl=en

--

Enan

--
--
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/CN7UUQBM3E9F.2CNQ6JFCP891S%40cirdan.

Re: Access is denied error when staring gVim on Windows

Yes, default Windows antivirus program Windows Defender.

--
--
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/2a2a47e9-04c3-4da3-b9cc-fe4bd9876bffn%40googlegroups.com.

Tuesday, September 27, 2022

Re: Access is denied error when staring gVim on Windows

You mean Windows Defender?

ANdrew

On 28/09/2022 4:53 pm, Igor wrote:
> Sorry to not be clear enough. I use default Windows 10 embed antivirus
> (I have written: In Windows in Settings...).
>

--
--
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/b13d1e78-28eb-4923-69a3-47ce2ffd47b6%40gmail.com.

Re: Access is denied error when staring gVim on Windows

Sorry to not be clear enough. I use default Windows 10 embed antivirus (I have written: In Windows in Settings...).

--
--
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/fe75401a-c174-4931-82b5-341b9106805dn%40googlegroups.com.

Re: Access is denied error when staring gVim on Windows

You have not said what virus program you use.

Andrew


--
--
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/395b95bc-561d-fbf6-fc7c-51c12e409f3f%40gmail.com.

Access is denied error when staring gVim on Windows

Hi,
I have gVim 9 installed on my Windows 10. Yesterday I have used gVim just normally. I start a program, use it and close it down. Then when I need to edit another text file I start gVim again.

Yesterday when I started program in the middle of the day I got "Access is denied" error.
Then I have opened Administrator cmd and tried to start gVim and got the same error.

I removed gVim and downloaded the latest Vim from https://github.com/vim/vim-win32-installer/releases/latest and gVim was start working again.

Today in the morning I started gVim I could work just normally. I closed it down and restarted it again and I got "Access is dened" error again.

In Windows in Settings I have searched for Virus protection and turned off "Real-time protection" and now I can start gVim again. Then I added my "vim" folder to Exclusions and turned "Real-time protection" back on and gVim starts normally.

Does someone else get this problem? Virus protection detected virus/malware in the program. It is probably false positive, but just in case if program is by any chance infected.

--
--
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/ed2bcfd2-d038-4e80-a36f-c3cea4613b94n%40googlegroups.com.

Re: win10: another clash w/ JPSoft's tcc

By coincidence today I suspected this mat be autoindent as well.

JPSoft tcc is an app that provides a command line interface to Windows,
with added extras. But it you think about it, CMD is also an app, as is
Powershell.

Why not try running in Powershell and see what happens? Or even CMD?

Andrew


On 28/09/2022 3:45 pm, Dominique Pellé wrote:
> Steve wrote
>
>> My best guess would be that it's vim auto indent mode acting up
>> with the way tcc is entering that text. You could try turning off
>> auto indent in your settings but adding the line:
>>
>> set noai
>>
>> In your .vimrc file. At least it will confirm whether that is the problem or not.
> It does not seem to be the issue, since even the
> Ex command line prompt is shifted when I look
> at the screenshot.
>
> To me, it looks like a bug in the terminal.
> I searched for "JPSoft's tcc". I'm not familiar
> with it, but it looks like a shell rather than a
> terminal if I read https://jpsoft.com/products/tcc-le.html
>
> So can't you run tcc inside a better terminal than
> the old Windows terminal (which is presumably
> what you're using)?
>
> Or is JPSoft's tcc combining both functionalities of a
> terminal and a shell? That would be odd, but in the
> Windows world it would not surprise me.
>
> Regards
> Dominique
>

--
--
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/7df2d7a6-3931-7413-ab1f-49d58368ed6d%40gmail.com.

Re: termguicolors in Windows Terminal outputs wrong color

On Tue Sep 27, 2022 at 12:36 AM +06, Enan wrote:
>
> P.P.S: I asked about this on the vi.SO site, too [5].
>
>
> [1]: github.com/vim/vim/tree/master/src/INSTALLpc.txt#L233-L244
> [2]: https://github.com/microsoft/terminal/
> [3]: https://i.stack.imgur.com/fUNtg.png
> [4]: https://i.stack.imgur.com/G6XAq.png
> [5]: https://vi.stackexchange.com/q/38672/16280
>

I also opened a bug report on Windows Terminal:
https://github.com/microsoft/terminal/issues/14095

--
--
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/CN7TNOE6GZWT.2C6FTGFNR74OJ%40cirdan.

Re: win10: another clash w/ JPSoft's tcc

Steve wrote

> My best guess would be that it's vim auto indent mode acting up
> with the way tcc is entering that text. You could try turning off
> auto indent in your settings but adding the line:
>
> set noai
>
> In your .vimrc file. At least it will confirm whether that is the problem or not.

It does not seem to be the issue, since even the
Ex command line prompt is shifted when I look
at the screenshot.

To me, it looks like a bug in the terminal.
I searched for "JPSoft's tcc". I'm not familiar
with it, but it looks like a shell rather than a
terminal if I read https://jpsoft.com/products/tcc-le.html

So can't you run tcc inside a better terminal than
the old Windows terminal (which is presumably
what you're using)?

Or is JPSoft's tcc combining both functionalities of a
terminal and a shell? That would be odd, but in the
Windows world it would not surprise me.

Regards
Dominique

--
--
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/CAON-T_jpY%2Bgv_hFF39vyyMpKp%3D%3D9GW46c%2Bx-FSnO5fw00q9qJQ%40mail.gmail.com.

Re: win10: another clash w/ JPSoft's tcc

My best guess would be that it's vim auto indent mode acting up with the way tcc is entering that text. You could try turning off auto indent in your settings but adding the line:

set noai

In your .vimrc file. At least it will confirm whether that is the problem or not.

-- Steve

On Tue, Sep 27, 2022, 6:24 PM Robert Solomon <drrob106@gmail.com> wrote:
Is there anything I can do about this?

Is this expected behavior?



On Sunday, September 25, 2022 at 10:56:05 AM UTC-4 Robert Solomon wrote:
No.
The context is that sometimes when I do

Git commit

I get that screen.   I use vim as my git editor 


On Sun, Sep 25, 2022, 2:24 AM Steve Martin <smart...@gmail.com> wrote:
Actually.... That looks like the kind of thing that happens when you paste some new text into VIM without switching to Paste mode first. Is that text being entered by TCC without your input?

On Sunday, September 25, 2022 at 12:22:20 AM UTC-6 Steve Martin wrote:
Ya, no that's a very different problem than the one I ran into back in the day with VIM 8. Rather than moving, the characters seemed to shift between being highlighted or having different background colors with each key press. And as I said, in my case, the fix was to change the terminal software I was using on Windows.

On Saturday, September 24, 2022 at 12:21:37 PM UTC-6 drro...@gmail.com wrote:
vim-error-screen-Sep-24-2022-trimmed.jpg

Notice that the cursor is the left edge but the text is progressively far from that.

On Tuesday, September 20, 2022 at 7:42:08 PM UTC-4 rob wrote:

For Windows 10 it's not feasible for me to change my terminal software.

And yes, the characters on screen do change as the cursor gets moved.  But they are not in sync.  For example, the cursor is on the left hand edge, and the characters that change are on the middle of that line.




On 9/20/22 02:01, Steve Martin wrote:
Any way to share a screenshot? Do the characters on the screen change as the cursor gets moved? I found that problem sometime back with Vim 8. However, that was resolved by changing the terminal software I was using.

On Monday, September 19, 2022 at 6:28:32 PM UTC-6 rob wrote:
A few years ago I reported a clash between vim 9.0.412 in non-gui mode
on Win10, with tcc by JPSoft.

The screen would become distorted in the editor, and upon exiting from
tcc the screen is distorted.

The problem now looks just like what I reported back then.

It happened to an earlier release of vim 9, so I upgraded vim and I'm
getting the same distortion of the characters on the screen.

It primarily happens when git calls vim within tcc.   I have git
2.37.2.windows.2

--rob solomon


--
--
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+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/7ac7c1b1-8115-4c5b-a158-8504c86180a7n%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 a topic in the Google Groups "vim_use" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_use/lB5ua9i0tMc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vim_use+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/344a76ad-b850-4b80-9e8f-a7f1306c4685n%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 a topic in the Google Groups "vim_use" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_use/lB5ua9i0tMc/unsubscribe.
To unsubscribe from this group and all its topics, 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/13ad2e4a-fae8-44ad-aa60-74a23c5619ebn%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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CADPQDNJ3nob2XyEX7FksMPBn5bs6eVebzYqryfR45K9VFLHTNA%40mail.gmail.com.

Re: win10: another clash w/ JPSoft's tcc

Is there anything I can do about this?

Is this expected behavior?



On Sunday, September 25, 2022 at 10:56:05 AM UTC-4 Robert Solomon wrote:
No.
The context is that sometimes when I do

Git commit

I get that screen.   I use vim as my git editor 


On Sun, Sep 25, 2022, 2:24 AM Steve Martin <smart...@gmail.com> wrote:
Actually.... That looks like the kind of thing that happens when you paste some new text into VIM without switching to Paste mode first. Is that text being entered by TCC without your input?

On Sunday, September 25, 2022 at 12:22:20 AM UTC-6 Steve Martin wrote:
Ya, no that's a very different problem than the one I ran into back in the day with VIM 8. Rather than moving, the characters seemed to shift between being highlighted or having different background colors with each key press. And as I said, in my case, the fix was to change the terminal software I was using on Windows.

On Saturday, September 24, 2022 at 12:21:37 PM UTC-6 drro...@gmail.com wrote:
vim-error-screen-Sep-24-2022-trimmed.jpg

Notice that the cursor is the left edge but the text is progressively far from that.

On Tuesday, September 20, 2022 at 7:42:08 PM UTC-4 rob wrote:

For Windows 10 it's not feasible for me to change my terminal software.

And yes, the characters on screen do change as the cursor gets moved.  But they are not in sync.  For example, the cursor is on the left hand edge, and the characters that change are on the middle of that line.




On 9/20/22 02:01, Steve Martin wrote:
Any way to share a screenshot? Do the characters on the screen change as the cursor gets moved? I found that problem sometime back with Vim 8. However, that was resolved by changing the terminal software I was using.

On Monday, September 19, 2022 at 6:28:32 PM UTC-6 rob wrote:
A few years ago I reported a clash between vim 9.0.412 in non-gui mode
on Win10, with tcc by JPSoft.

The screen would become distorted in the editor, and upon exiting from
tcc the screen is distorted.

The problem now looks just like what I reported back then.

It happened to an earlier release of vim 9, so I upgraded vim and I'm
getting the same distortion of the characters on the screen.

It primarily happens when git calls vim within tcc.   I have git
2.37.2.windows.2

--rob solomon


--
--
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+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/7ac7c1b1-8115-4c5b-a158-8504c86180a7n%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 a topic in the Google Groups "vim_use" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_use/lB5ua9i0tMc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vim_use+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/344a76ad-b850-4b80-9e8f-a7f1306c4685n%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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/13ad2e4a-fae8-44ad-aa60-74a23c5619ebn%40googlegroups.com.

Re: Bugs in visual mode marks?

On 2022-09-27, M <matthewtarasov@gmail.com> wrote:
> You're using cmd token that doesn't switch the modes. The effect is that as
> long as you're in visual mode the < and > marks are not updated. This is
> the way how it works and always worked.

Aha, that's it! In fact, I have switched to use <cmd> when I have
migrated to Vim 9 script. Somehow I thought it was a substitute for
:<c-u>, but there are other differences.

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

Re: Bugs in visual mode marks?



вт, 27 сент. 2022 г., 22:33 Lifepillar <lifepillar@lifepillar.me>:
Source this script:

    vim9script

    def g:Select(): list<string>
      const lnum1 = getpos("'<")[1]
      const lnum2 = getpos("'>")[1]
      return getline(lnum1, lnum2)
    enddef

    vnoremap <leader>x <cmd>echo Select()<cr>

Then select some line(s) and type \x. What I would expect (and what
I think Vim used to do up to recently, unless I am missing something) is
that the *currently* selected lines are echoed. Instead, the
*previously* selected lines are printed. Can you reproduce it? Is it
a bug?

Tested with Vim 9.0.611.

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

You're using cmd token that doesn't switch the modes. The effect is that as long as you're in visual mode the < and > marks are not updated. This is the way how it works and always worked.

Call getpos("v") instead, or change cmd to colon. See also :h line()

Kind regards,
Matvey

--
--
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/CAFsTB%2B%2BqLqZEYY2_9rJA7BCBceS7XcieiL2aXK-7JZQgJT0P0w%40mail.gmail.com.

Re: Bugs in visual mode marks?

Source this script:

vim9script

def g:Select(): list<string>
const lnum1 = getpos("'<")[1]
const lnum2 = getpos("'>")[1]
return getline(lnum1, lnum2)
enddef

vnoremap <leader>x <cmd>echo Select()<cr>

Then select some line(s) and type \x. What I would expect (and what
I think Vim used to do up to recently, unless I am missing something) is
that the *currently* selected lines are echoed. Instead, the
*previously* selected lines are printed. Can you reproduce it? Is it
a bug?

Tested with Vim 9.0.611.

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

Re: Bugs in visual mode marks?

On 2022-09-27, Lifepillar <lifepillar@lifepillar.me> wrote:
> Today, I checked the value of getpos("'>") after selecting some text,
> and got:
>
> [0, 15, 2147483647, 0]

Now I have seen that the large number is expected. I will try to make
a reproducible example of my issue.

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

Bugs in visual mode marks?

Has something changed recently in the way Visual mode marks are handled?
I have a couple of functions using '<, '> and the like and they have
started misbehaving recently. Today, I checked the value of getpos("'>")
after selecting some text, and got:

[0, 15, 2147483647, 0]

This using Vim 9.0.493 on an M1 Mac. I am investigating the problem, but
I am curious to know whether it is a known (and perhaps solved) issue.

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

Monday, September 26, 2022

termguicolors in Windows Terminal outputs wrong color

I'm running vim built from source (v9.0.0594) with MSys2/MinGW64 [1] on
Windows Terminal [2] with the following command.


    vimd --clean +"set ls=2 tgc"


In the old conhost terminal, the colors are output properly [3].

But in Windows Terminal (v1.16.2524.0), the colors with `:h
termguicolors` enabled is incorrect [4].

FYI: Neovim outputs the colors perfectly in both conhost and Windows
Terminal.

Vim `:version` is:

    VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Sep 26 2022 21:56:22)
    MS-Windows 64-bit console version
    Included patches: 1-594
    Compiled by ACER@DESKTOP-5F09VFS
    Huge version without GUI.  Features included (+) or not (-):
    +acl                +ex_extra           +multi_lang         -tag_any_white
    +arabic             +extra_search       -mzscheme           -tcl
    +autocmd            -farsi              -netbeans_intg      +termguicolors
    +autochdir          +file_in_path       +num64              +terminal
    +autoservername     +find_in_path       +packages           -termresponse
    -balloon_eval       +float              +path_extra         +textobjects
    +balloon_eval_term  +folding            -perl               +textprop
    -browse             -footer             +persistent_undo    -tgetent
    ++builtin_terms     +gettext/dyn        +popupwin           +timers
    +byte_offset        -hangul_input       -postscript         +title
    +channel            +iconv/dyn          +printer            -toolbar
    +cindent            +insert_expand      +profile            +user_commands
    +clientserver       +ipv6               -python             +vartabs
    +clipboard          +job                -python3            +vertsplit
    +cmdline_compl      +jumplist           +quickfix           +vim9script
    +cmdline_hist       +keymap             +reltime            +viminfo
    +cmdline_info       +lambda             +rightleft          +virtualedit
    +comments           +langmap            -ruby               +visual
    +conceal            +libcall            +scrollbind         +visualextra
    +cryptv             +linebreak          +signs              +vreplace
    +cscope             +lispindent         +smartindent        +vtp
    +cursorbind         +listcmds           -sodium             +wildignore
    +cursorshape        +localmap           +sound              +wildmenu
    +dialog_con         -lua                +spell              +windows
    +diff               +menu               +startuptime        +writebackup
    +digraphs           +mksession          +statusline         -xfontset
    -dnd                +modify_fname       -sun_workshop       -xim
    -ebcdic             +mouse              +syntax             -xpm_w32
    +emacs_tags         -mouseshape         +tag_binary         -xterm_save
    +eval               +multi_byte_ime/dyn -tag_old_static    
      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"
          defaults file: "$VIMRUNTIME\defaults.vim"
    Compilation: gcc -I. -Iproto -DWIN32 -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -DHAVE_PATHDEF -DFEAT_HUGE -DHAVE_STDINT_H -DMS_WIN64 -DHAVE_GETTEXT -DHAVE_LOCALE_H -DDYNAMIC_GETTEXT -DFEAT_CSCOPE -DFEAT_JOB_CHANNEL -DFEAT_IPV6 -DHAVE_INET_NTOP -DFEAT_TERMINAL -DFEAT_SOUND -DFEAT_MBYTE_IME -DDYNAMIC_IME -DDYNAMIC_ICONV -pipe -march=x86-64 -Wall -g -fstack-check
    Linking: gcc -I. -Iproto -DWIN32 -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -DHAVE_PATHDEF -DFEAT_HUGE -DHAVE_STDINT_H -DMS_WIN64 -DHAVE_GETTEXT -DHAVE_LOCALE_H -DDYNAMIC_GETTEXT -DFEAT_CSCOPE -DFEAT_JOB_CHANNEL -DFEAT_IPV6 -DHAVE_INET_NTOP -DFEAT_TERMINAL -DFEAT_SOUND -DFEAT_MBYTE_IME -DDYNAMIC_IME -DDYNAMIC_ICONV -pipe -march=x86-64 -Wall -g -fstack-check -municode -o vimd.exe -lkernel32 -luser32 -lgdi32 -ladvapi32 -lcomdlg32 -lcomctl32 -lnetapi32 -lversion -lwsock32 -lws2_32 -lwinmm -lole32 -luuid      

P.S. I doubled-checked with 32-bit vim (instead of 64-bit). Same result.

P.P.S: I asked about this on the vi.SO site, too [5].


[1]: github.com/vim/vim/tree/master/src/INSTALLpc.txt#L233-L244
[2]: https://github.com/microsoft/terminal/
[3]: https://i.stack.imgur.com/fUNtg.png
[4]: https://i.stack.imgur.com/G6XAq.png
[5]: https://vi.stackexchange.com/q/38672/16280

--
Enan
3nan.ajmain@gmail.com
https://www.github.com/3N4N

--
--
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/9a17abe7-c925-495a-8725-b7f09183aec3n%40googlegroups.com.

Sunday, September 25, 2022

Re: win10: another clash w/ JPSoft's tcc

No.
The context is that sometimes when I do

Git commit

I get that screen.   I use vim as my git editor 


On Sun, Sep 25, 2022, 2:24 AM Steve Martin <smartin5590@gmail.com> wrote:
Actually.... That looks like the kind of thing that happens when you paste some new text into VIM without switching to Paste mode first. Is that text being entered by TCC without your input?

On Sunday, September 25, 2022 at 12:22:20 AM UTC-6 Steve Martin wrote:
Ya, no that's a very different problem than the one I ran into back in the day with VIM 8. Rather than moving, the characters seemed to shift between being highlighted or having different background colors with each key press. And as I said, in my case, the fix was to change the terminal software I was using on Windows.

On Saturday, September 24, 2022 at 12:21:37 PM UTC-6 drro...@gmail.com wrote:
vim-error-screen-Sep-24-2022-trimmed.jpg

Notice that the cursor is the left edge but the text is progressively far from that.

On Tuesday, September 20, 2022 at 7:42:08 PM UTC-4 rob wrote:

For Windows 10 it's not feasible for me to change my terminal software.

And yes, the characters on screen do change as the cursor gets moved.  But they are not in sync.  For example, the cursor is on the left hand edge, and the characters that change are on the middle of that line.




On 9/20/22 02:01, Steve Martin wrote:
Any way to share a screenshot? Do the characters on the screen change as the cursor gets moved? I found that problem sometime back with Vim 8. However, that was resolved by changing the terminal software I was using.

On Monday, September 19, 2022 at 6:28:32 PM UTC-6 rob wrote:
A few years ago I reported a clash between vim 9.0.412 in non-gui mode
on Win10, with tcc by JPSoft.

The screen would become distorted in the editor, and upon exiting from
tcc the screen is distorted.

The problem now looks just like what I reported back then.

It happened to an earlier release of vim 9, so I upgraded vim and I'm
getting the same distortion of the characters on the screen.

It primarily happens when git calls vim within tcc.   I have git
2.37.2.windows.2

--rob solomon


--
--
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+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/7ac7c1b1-8115-4c5b-a158-8504c86180a7n%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 a topic in the Google Groups "vim_use" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_use/lB5ua9i0tMc/unsubscribe.
To unsubscribe from this group and all its topics, 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/344a76ad-b850-4b80-9e8f-a7f1306c4685n%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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAJTu_tZ_-CNzfKKz%3DMnS%2Bi050Cy5tvHqWKUcBxKUrYYpTiYbyw%40mail.gmail.com.

Saturday, September 24, 2022

Re: win10: another clash w/ JPSoft's tcc

Actually.... That looks like the kind of thing that happens when you paste some new text into VIM without switching to Paste mode first. Is that text being entered by TCC without your input?

On Sunday, September 25, 2022 at 12:22:20 AM UTC-6 Steve Martin wrote:
Ya, no that's a very different problem than the one I ran into back in the day with VIM 8. Rather than moving, the characters seemed to shift between being highlighted or having different background colors with each key press. And as I said, in my case, the fix was to change the terminal software I was using on Windows.

On Saturday, September 24, 2022 at 12:21:37 PM UTC-6 drro...@gmail.com wrote:
vim-error-screen-Sep-24-2022-trimmed.jpg

Notice that the cursor is the left edge but the text is progressively far from that.

On Tuesday, September 20, 2022 at 7:42:08 PM UTC-4 rob wrote:

For Windows 10 it's not feasible for me to change my terminal software.

And yes, the characters on screen do change as the cursor gets moved.  But they are not in sync.  For example, the cursor is on the left hand edge, and the characters that change are on the middle of that line.




On 9/20/22 02:01, Steve Martin wrote:
Any way to share a screenshot? Do the characters on the screen change as the cursor gets moved? I found that problem sometime back with Vim 8. However, that was resolved by changing the terminal software I was using.

On Monday, September 19, 2022 at 6:28:32 PM UTC-6 rob wrote:
A few years ago I reported a clash between vim 9.0.412 in non-gui mode
on Win10, with tcc by JPSoft.

The screen would become distorted in the editor, and upon exiting from
tcc the screen is distorted.

The problem now looks just like what I reported back then.

It happened to an earlier release of vim 9, so I upgraded vim and I'm
getting the same distortion of the characters on the screen.

It primarily happens when git calls vim within tcc.   I have git
2.37.2.windows.2

--rob solomon


--
--
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+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/7ac7c1b1-8115-4c5b-a158-8504c86180a7n%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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/344a76ad-b850-4b80-9e8f-a7f1306c4685n%40googlegroups.com.

Re: win10: another clash w/ JPSoft's tcc

Ya, no that's a very different problem than the one I ran into back in the day with VIM 8. Rather than moving, the characters seemed to shift between being highlighted or having different background colors with each key press. And as I said, in my case, the fix was to change the terminal software I was using on Windows.

On Saturday, September 24, 2022 at 12:21:37 PM UTC-6 drro...@gmail.com wrote:
vim-error-screen-Sep-24-2022-trimmed.jpg

Notice that the cursor is the left edge but the text is progressively far from that.

On Tuesday, September 20, 2022 at 7:42:08 PM UTC-4 rob wrote:

For Windows 10 it's not feasible for me to change my terminal software.

And yes, the characters on screen do change as the cursor gets moved.  But they are not in sync.  For example, the cursor is on the left hand edge, and the characters that change are on the middle of that line.




On 9/20/22 02:01, Steve Martin wrote:
Any way to share a screenshot? Do the characters on the screen change as the cursor gets moved? I found that problem sometime back with Vim 8. However, that was resolved by changing the terminal software I was using.

On Monday, September 19, 2022 at 6:28:32 PM UTC-6 rob wrote:
A few years ago I reported a clash between vim 9.0.412 in non-gui mode
on Win10, with tcc by JPSoft.

The screen would become distorted in the editor, and upon exiting from
tcc the screen is distorted.

The problem now looks just like what I reported back then.

It happened to an earlier release of vim 9, so I upgraded vim and I'm
getting the same distortion of the characters on the screen.

It primarily happens when git calls vim within tcc.   I have git
2.37.2.windows.2

--rob solomon


--
--
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+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/7ac7c1b1-8115-4c5b-a158-8504c86180a7n%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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/047fa2f7-5f38-49b2-aa9a-7541af8956f4n%40googlegroups.com.

Re: Compiling vim 9.0 with gui

Just saw this now. I see you have solved it, but out of interest this is what I did on Ubuntu:

./configure --enable-gnome-check --with-x --enable-gui

And yes I had to install libXtdvelopment package.

As an aside Centos 8 reached EOL in December last year - as I am sure you know.  May not be the best platform now? I am very pleased with Alma Linux as a replacement for Centos.




--
--
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/a431d80b-84ac-43a2-84a3-4f525a02607en%40googlegroups.com.

Re: win10: another clash w/ JPSoft's tcc

vim-error-screen-Sep-24-2022-trimmed.jpg

Notice that the cursor is the left edge but the text is progressively far from that.

On Tuesday, September 20, 2022 at 7:42:08 PM UTC-4 rob wrote:

For Windows 10 it's not feasible for me to change my terminal software.

And yes, the characters on screen do change as the cursor gets moved.  But they are not in sync.  For example, the cursor is on the left hand edge, and the characters that change are on the middle of that line.




On 9/20/22 02:01, Steve Martin wrote:
Any way to share a screenshot? Do the characters on the screen change as the cursor gets moved? I found that problem sometime back with Vim 8. However, that was resolved by changing the terminal software I was using.

On Monday, September 19, 2022 at 6:28:32 PM UTC-6 rob wrote:
A few years ago I reported a clash between vim 9.0.412 in non-gui mode
on Win10, with tcc by JPSoft.

The screen would become distorted in the editor, and upon exiting from
tcc the screen is distorted.

The problem now looks just like what I reported back then.

It happened to an earlier release of vim 9, so I upgraded vim and I'm
getting the same distortion of the characters on the screen.

It primarily happens when git calls vim within tcc.   I have git
2.37.2.windows.2

--rob solomon


--
--
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+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/7ac7c1b1-8115-4c5b-a158-8504c86180a7n%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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/8dd1ec1d-70fb-4ba1-84a3-e2162805bfefn%40googlegroups.com.

Wednesday, September 21, 2022

Re: Fwd: Compiling vim 9.0 with gui (SOLVED!)



On Wed, 21 Sept 2022 at 13:22, Bram Moolenaar <Bram@moolenaar.net> wrote:

> I have been trying to compile vim 9.0 with GUI enabled in CentOS 8. I have
> all the gtk-devel packages installed, and I am able to compile other gtk
> apps, but the vim build gives me a vim without GUI. I have tried configure
> --enable-gui=gtk but it doesn't help.
>
> I do not remember any problem with previous versions.

After running configure, look in src/auto/config.log.
Search for "GTK".  It should tell you what is missing.

Thank you very much. I actually didn't find a reference to gtk but searching for gui turned up a failure to find Intrinsic.h

Here is the part of the configure script responsible:

$as_echo_n "checking if X11 header files can be found... " >&6; }
  cflags_save=$CFLAGS
  CFLAGS="$CFLAGS $X_CFLAGS"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <X11/Xlib.h>
#include <X11/Intrinsic.h>
int
main ()
{

  ;
  return 0;
}
_ACEOF

The whole problem was a result of the way I installed my development support on CentOS, which was by installing the gtk3-devel package with yum (dnf). This installed the X development packages necessary for gtk, but it didn't install the (obsolescent) libXt-devel package. Installing that allowed a gui compilation. Perhaps this check in the configure script needs to be updated.

Anyway, I now have a working GUI vim!

Thanks again!

--
--
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/CAPKXbB4RA38NW0yF6C4cyUG3_ed3_e9Vq2wLFEdKYFTAGwqQoQ%40mail.gmail.com.

Re: Fwd: Compiling vim 9.0 with gui

> I have been trying to compile vim 9.0 with GUI enabled in CentOS 8. I have
> all the gtk-devel packages installed, and I am able to compile other gtk
> apps, but the vim build gives me a vim without GUI. I have tried configure
> --enable-gui=gtk but it doesn't help.
>
> I do not remember any problem with previous versions.

After running configure, look in src/auto/config.log.
Search for "GTK". It should tell you what is missing.

--
Support your right to bare arms! Wear short sleeves!

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

Fwd: Compiling vim 9.0 with gui




Hi,

I have been trying to compile vim 9.0 with GUI enabled in CentOS 8. I have all the gtk-devel packages installed, and I am able to compile other gtk apps, but the vim build gives me a vim without GUI. I have tried configure --enable-gui=gtk but it doesn't help.

I do not remember any problem with previous versions.

Thank you,

Ephraim

--
--
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/CAPKXbB7jNzF2mAH7%3D1jVGOkEFPtrhedgunBqWn0-qnVs9fsatQ%40mail.gmail.com.