Wednesday, January 31, 2024

Get list of lambdas and closures

Is it possible to get the list of all lambdas? I'm looking for something
similar to :function.

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/upecnp%24s9i%241%40ciao.gmane.io.

Tuesday, January 30, 2024

Re: echo &shell returns /bin/zsh but when I run :sh I get a strange shell.

For those who may bump into the same problem.

set guioptions+=! 

fixed the problem. 

Ciao,
/U

On Mon, 29 Jan 2024 at 13:19, Ubaldo Tiberi <ubaldo.tiberi@gmail.com> wrote:
Here is an example:


It does not look great... 
On the other hand, when instead I run :terminal I get a correct zsh shell. 
I wish to fix this because I use a lot of :! commands and these movements are part of my muscle memory by now. 
Any idea on how to fix it? 

I am working on MacVim 9.1. 

--
--
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/72Rr-R9dmxo/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/29270894-e532-4233-a3a9-69ed0a69d2dbn%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/CA%2BnhgoMyYOmeyOevXA%2BbrS8P0CuBc2RhpO9bLF%2BEjT1R72AHKg%40mail.gmail.com.

Monday, January 29, 2024

Re: Termdebug does not show messaged back from openocd.

Hi,

On Sun, Jan 28, 2024 at 9:46 PM Ubaldo Tiberi <ubaldo.tiberi@gmail.com> wrote:
>
> Ok, I somehow expected that. :)
>
> Unfortunately I am not skilled enough nor have enough time budget for this kind of investigation, but on the positive side I managed to setup Termdebug as a client for an openocd server who was running in a hidden terminal buffer in Vim in a fairly streamlined way.
>
> Other than being unable to display messages back from the server when using (gdb) monitor <whatever poll command>, most likely due to a Termdebug bug, the overall debugging experience by just using gdb commands was excellent.
>

The following discussion is relevant to this:

https://emacs.stackexchange.com/questions/59289/monitor-commands-from-gud-gdb-command-line-not-showing-output

Regards,
Yegappan

> Vim is a top class piece of software.
>
> Best,
> /Ubaldo
>
> > Il giorno 28 gen 2024, alle ore 21:28, Christian Brabandt <cblists@256bit.org> ha scritto:
> >
> > 
> >> On So, 28 Jan 2024, Ubaldo Tiberi wrote:
> >>
> >> I am working with a microcontroller (stm32f4) and I am attempting to debug it by connecting Termdebug to openocd.
> >>
> >> Everything works nicely with the exception that the messages sent back from openocd (server) to Termdebug (client) are not displayed in any Termdebug window (I expected them to be displayed in the gbd window).
> >>
> >> For example, if I run (gdb) monitor reg I would expect to have the content of the microcontroller's registers displayed in the Termdebug's gdb window, but unfortunately that does not happen.
> >>
> >> This is what is in my .vimrc
> >>
> >> g:termdebug_config = {} var debugger_path = "/Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.macos64_1.1.100.202310310803/tools/bin/" g:termdebug_config
> >> ['command'] = debugger_path .. "arm-none-eabi-gdb"
> >>
> >> If instead of using Termdebug I use another terminal window (I am using iTerm2) running as arm-none-eabi-gdb client connected to the same openocd server, then the messages sent back from the server are correctly displayed.
> >>
> >> I am using MacVim 9.1.
> >
> > I am afraid you would have to debug the Termdebug plugin and find out
> > where exactly it fails. I don't think anybody here knows about the
> > specifics of "arm-non-eabi-gdb"
> >
> >

--
--
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/CAAW7x7mB92mJp%2BYgSnVaT-vLBBLpTVbrOi1NQcsrf%3Dacrw5EiA%40mail.gmail.com.

fancy config editing with vim for json?

Hi there, 
is there a way to load a schema for json in vim and then have the right options in autocomplete?

Thanks in advance. 

--
Mit freundlichen Grüßen
Sebastian Gödecke

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

Re: Commit: patch 9.1.0009: Cannot easily get the list of matches

This is very cool!
I have tried to install as soon as it went out (I am follower on GitHub so I am immediately notified) but then I found out that matchbufline() is not available (yet) on MacVim (at its 9.1 Version). 
I'll install it as soon as that command will be available on MacVim. 

On Tuesday 9 January 2024 at 15:51:45 UTC+1 Yegappan Lakshmanan wrote:
On Sun, Jan 7, 2024 at 8:30 AM Yegappan Lakshmanan <yega...@gmail.com> wrote:
Hi all,

On Thu, Jan 4, 2024 at 1:45 PM Christian Brabandt <cbl...@256bit.org> wrote:
patch 9.1.0009: Cannot easily get the list of matches

Commit: https://github.com/vim/vim/commit/f93b1c881a99fa847a1bafa71877d7e16f18e6ef
Author: Yegappan Lakshmanan <yega...@yahoo.com>
Date:   Thu Jan 4 22:28:46 2024 +0100

    patch 9.1.0009: Cannot easily get the list of matches

    Problem:  Cannot easily get the list of matches
    Solution: Add the matchstrlist() and matchbufline() Vim script
              functions (Yegappan Lakshmanan)


To demonstrate the use of the new matchbufline() function, I have created
the following script.  This does search text completion from the list of words
in the current buffer.  After typing a few letters in the "/" prompt, if you press
Tab, it will complete the word from the current buffer.  If you press Tab again,
then it will go to the next match.  If you press Shift-Tab, it will go back to
the previous match.


I have uploaded this plugin to the https://github.com/yegappan/searchcomplete repository.

Regards,
Yegappan 

--
--
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/7482c109-a5ff-4bbe-b7cd-0c47ec829393n%40googlegroups.com.

echo &shell returns /bin/zsh but when I run :sh I get a strange shell.

Here is an example:
shell.png

It does not look great... 
On the other hand, when instead I run :terminal I get a correct zsh shell. 
I wish to fix this because I use a lot of :! commands and these movements are part of my muscle memory by now. 
Any idea on how to fix it? 

I am working on MacVim 9.1. 

--
--
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/29270894-e532-4233-a3a9-69ed0a69d2dbn%40googlegroups.com.

Re: [Discussion] GitHub as the canonical source or not

Hi,

On Monday, 2024-01-29 00:49:50 -0800, Romain Lafourcade wrote:

> You should come up with a list of _actual_ ways using GitHub _actually_
> harms the Vim project if you want to be taken seriously.

No, I should not, and I don't have to do anything to suit your beliefs
or prove I'm worthy to be taken seriously by you.

Good bye

Eike

--
OpenPGP/GnuPG encrypted mail preferred in all private communication.
GPG key 0x6A6CD5B765632D3A - 2265 D7F3 A7B0 95CC 3918 630B 6A6C D5B7 6563 2D3A
Use LibreOffice! https://www.libreoffice.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/Zbd9A0abUDiijFFl%40kulungile.erack.de.

Re: [Discussion] GitHub as the canonical source or not

On Sunday, January 28, 2024 at 11:42:57 PM UTC+1 Eike Rathke wrote:
Hi Christian,

On Sunday, 2024-01-28 21:26:58 +0100, Christian Brabandt wrote:

> On So, 28 Jan 2024, Sukima wrote:
> > Recently there has been a percolating trend to be concerned over GitHub. Specifically the
> > Give up GitHub plea.
>
> Hm, I might be missing something, but what is the Github plea?

Sukima linked to it: https://sfconservancy.org/GiveUpGitHub/

Of 2022 already, but things will probably get only worse over time.

I suggest to take a look at Codeberg, https://codeberg.org/


You should come up with a list of _actual_ ways using GitHub _actually_ harms the Vim project if you want to be taken seriously.

--
--
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/a0da1fb1-8ea9-45e4-843a-48dad8d2e8afn%40googlegroups.com.

Re: [Discussion] GitHub as the canonical source or not

On Sun, Jan 28, 2024 at 07:25:03AM -0800, Sukima wrote:
> Recently there has been a percolating trend to be concerned over GitHub.
> Specifically the
> Give up GitHub <https://sfconservancy.org/GiveUpGitHub/> plea.
>
> Since Vim is a FOSS project I was curious what the community thought about
> this.
>
> 1. Pros/Cons?

Noce to see this discussion on GitHub, but IMHO a bit late. Far Too
Late.

GitHub is owned by Microsoft, they bought the platform several years
ago. Technically GH might be practical for developers, but the owner
can be a problem. In several ways.

Microsoft says to `<3` Linux, but anyone who remembers their quite
agressive proprietary way can smell the threat for the freedom of your
code.

What when they pull the plug? By cutting the cables or --more realistic
in this part of the software world-- ask growing fees for using, up- and
downloading code.

What does Microsoft with all the code? In the past they nicked parts to
implement and sell. Maybe part of some GPL or BSD license accepts that,
but it feels somewhat strange. Sooner or later people pay for
proprietary software based on FOSS code. That ain't fair.

Trust is good, trust in a (former) opponent is brave. But don't be naiv.

The other thing about GitHub and all the alternatives is that a parallel
universe of software sources and repositories seems to grow. This brings
practical (where can I find it) and security concerns (who can change
code, fork it with nasty features, present it as a decent fork). The
latter is a very big risk for computer and software safety. I expect the
formal repositories in Linuxes and *BSD do security checks on the code.
In de Microsoft-realm we all know the spreading of virusus and malware
made possible by this cowboy way of software distribution.

My thoughts on the plea. Find a common, secure and independent place for
it!

KR

//meine

--
--
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/Zbdmb41-KzZkOnHt%40trackstand.

Sunday, January 28, 2024

Re: Termdebug does not show messaged back from openocd.

Ok, I somehow expected that. :)

Unfortunately I am not skilled enough nor have enough time budget for this kind of investigation, but on the positive side I managed to setup Termdebug as a client for an openocd server who was running in a hidden terminal buffer in Vim in a fairly streamlined way.

Other than being unable to display messages back from the server when using (gdb) monitor <whatever poll command>, most likely due to a Termdebug bug, the overall debugging experience by just using gdb commands was excellent.

Vim is a top class piece of software.

Best,
/Ubaldo

> Il giorno 28 gen 2024, alle ore 21:28, Christian Brabandt <cblists@256bit.org> ha scritto:
>
> 
>> On So, 28 Jan 2024, Ubaldo Tiberi wrote:
>>
>> I am working with a microcontroller (stm32f4) and I am attempting to debug it by connecting Termdebug to openocd.
>>
>> Everything works nicely with the exception that the messages sent back from openocd (server) to Termdebug (client) are not displayed in any Termdebug window (I expected them to be displayed in the gbd window).
>>
>> For example, if I run (gdb) monitor reg I would expect to have the content of the microcontroller's registers displayed in the Termdebug's gdb window, but unfortunately that does not happen.
>>
>> This is what is in my .vimrc
>>
>> g:termdebug_config = {} var debugger_path = "/Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.macos64_1.1.100.202310310803/tools/bin/" g:termdebug_config
>> ['command'] = debugger_path .. "arm-none-eabi-gdb"
>>
>> If instead of using Termdebug I use another terminal window (I am using iTerm2) running as arm-none-eabi-gdb client connected to the same openocd server, then the messages sent back from the server are correctly displayed.
>>
>> I am using MacVim 9.1.
>
> I am afraid you would have to debug the Termdebug plugin and find out
> where exactly it fails. I don't think anybody here knows about the
> specifics of "arm-non-eabi-gdb"
>
>
> Thanks,
> Christian
> --
> "You stay here, Audrey -- this is between me and the vegetable!"
> -- Seymour, from _Little Shop Of Horrors_
>
> --
> --
> 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/fBCd-7jV_b8/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/Zba49Yo77m6RK/ay%40256bit.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/0129E7B0-CB8F-4BB3-A128-7768ECBA02A4%40gmail.com.

Re: [Discussion] GitHub as the canonical source or not

Hi Christian,

On Sunday, 2024-01-28 21:26:58 +0100, Christian Brabandt wrote:

> On So, 28 Jan 2024, Sukima wrote:
> > Recently there has been a percolating trend to be concerned over GitHub. Specifically the
> > Give up GitHub plea.
>
> Hm, I might be missing something, but what is the Github plea?

Sukima linked to it: https://sfconservancy.org/GiveUpGitHub/

Of 2022 already, but things will probably get only worse over time.

I suggest to take a look at Codeberg, https://codeberg.org/

Eike

--
OpenPGP/GnuPG encrypted mail preferred in all private communication.
GPG key 0x6A6CD5B765632D3A - 2265 D7F3 A7B0 95CC 3918 630B 6A6C D5B7 6563 2D3A
Use LibreOffice! https://www.libreoffice.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/ZbbYaDlnmVqpXxbG%40kulungile.erack.de.

Re: Termdebug does not show messaged back from openocd.

On So, 28 Jan 2024, Ubaldo Tiberi wrote:

> I am working with a microcontroller (stm32f4) and I am attempting to debug it by connecting Termdebug to openocd.
>
> Everything works nicely with the exception that the messages sent back from openocd (server) to Termdebug (client) are not displayed in any Termdebug window (I expected them to be displayed in the gbd window).
>
> For example, if I run (gdb) monitor reg I would expect to have the content of the microcontroller's registers displayed in the Termdebug's gdb window, but unfortunately that does not happen.
>
> This is what is in my .vimrc
>
> g:termdebug_config = {} var debugger_path = "/Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.macos64_1.1.100.202310310803/tools/bin/" g:termdebug_config
> ['command'] = debugger_path .. "arm-none-eabi-gdb"
>
> If instead of using Termdebug I use another terminal window (I am using iTerm2) running as arm-none-eabi-gdb client connected to the same openocd server, then the messages sent back from the server are correctly displayed.
>
> I am using MacVim 9.1.

I am afraid you would have to debug the Termdebug plugin and find out
where exactly it fails. I don't think anybody here knows about the
specifics of "arm-non-eabi-gdb"


Thanks,
Christian
--
"You stay here, Audrey -- this is between me and the vegetable!"
-- Seymour, from _Little Shop Of Horrors_

--
--
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/Zba49Yo77m6RK/ay%40256bit.org.

Re: [Discussion] GitHub as the canonical source or not

On So, 28 Jan 2024, Sukima wrote:

> Recently there has been a percolating trend to be concerned over GitHub. Specifically the
> Give up GitHub plea.

Hm, I might be missing something, but what is the Github plea?

> Since Vim is a FOSS project I was curious what the community thought about this.
>
> 1. Pros/Cons?

I don't plan on moving away from Github in particular since this is the
first time I hear some doubts. I like it's UI, but I don't think we are
so too much in a walled garden. The homepage is separate, we are not
relying on the release feature. However I would miss the issue tracker
and the CI integration. In fact, I think Github has served us quite
well, but if we would need to find a new home, it should be possible
with some work.

> 2. Is the Vim License worded well enough to weather any CoPilot bubble?

Please expand, why it wouldn't.

> 3. Do the tools compare to other contribution models?

What tools?

> 4. How do other FOSS projects approach the monolithic use of GH?

GH is only part of the Vim project, we are not relying too much on GH
for development of Vim. I have no idea about other FOSS projects.

> 5. Other praises or concerns?
>
> To quote the famous "Coffee Talk" SNL skit… "talk amongst yourselves."


Thanks,
Christian
--
We are all so much together and yet we are all dying of loneliness.
-- A. Schweitzer

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

Termdebug does not show messaged back from openocd.

I am working with a microcontroller (stm32f4) and I am attempting to debug it by connecting Termdebug to openocd.

Everything works nicely with the exception that the messages sent back from openocd (server) to Termdebug (client) are not displayed in any Termdebug window (I expected them to be displayed in the gbd window).

For example, if I run (gdb) monitor reg I would expect to have the content of the microcontroller's registers displayed in the Termdebug's gdb window, but unfortunately that does not happen.

This is what is in my .vimrc

g:termdebug_config = {} var debugger_path = "/Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.macos64_1.1.100.202310310803/tools/bin/" g:termdebug_config['command'] = debugger_path .. "arm-none-eabi-gdb"

If instead of using Termdebug I use another terminal window (I am using iTerm2) running as arm-none-eabi-gdb client connected to the same openocd server, then the messages sent back from the server are correctly displayed.

I am using MacVim 9.1.

--
--
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/2c5d21df-d248-4e67-8d3a-bd07ffc057ean%40googlegroups.com.

[Discussion] GitHub as the canonical source or not

Recently there has been a percolating trend to be concerned over GitHub. Specifically the

Since Vim is a FOSS project I was curious what the community thought about this.
  1. Pros/Cons?
  2. Is the Vim License worded well enough to weather any CoPilot bubble?
  3. Do the tools compare to other contribution models?
  4. How do other FOSS projects approach the monolithic use of GH?
  5. Other praises or concerns?
To quote the famous "Coffee Talk" SNL skit… "talk amongst yourselves."

--
--
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/fb9ebb03-14cb-4baa-88b6-e0724e294570n%40googlegroups.com.

Friday, January 26, 2024

Re: How to make gvim/vim-gtk3 behave exactly like vim

On 2024-01-26, Steve Litt wrote:
> Christian Brabandt said on Fri, 19 Jan 2024 17:50:11 +0100
>
> >On Fr, 19 Jan 2024, 'Ottavio Caruso' via vim_use wrote:
> >> I also use vim on xterm on Linux. It just is difficult cut/copy/paste
> >> data to/from, for example a web browser. Yes, it is possible, it is
> >> just not that neat.
> >
> >And why would those be different between terminal Vim and Gui Vim?
>
> Linux is a spectacular OS compared to Linux, but my workflow experience
> is that Windows cut and paste is much simpler and easier to use than
> Linux'. I'm not a fan of multiple paste buffers.
>
> Linux cut and paste is different on lxterminal vs xterm, different on
> xterm with and xterm without tmux, etc, so of course it will be
> different depending on whether Vim is GUI or hosted on a terminal
> emulator. These things aren't Vim's fault. The one thing I could blame
> on Vim is that Shift+',Shift+8,yy doesn't do what I think it would do,
> requiring middle mouse rather than Ctrl+v or Edit>Paste to paste.
> Shift+',Shift++,yy is more what you want, but even then Ctrl+V won't
> paste.

I agree that copy-and-paste with tmux is a pain (I just hold the
shift key down while selecting with the mouse), as is using mintty
on Windows with an ssh connection to a Linux machine. However, as
I wrote earlier, autocutsel has solved all (I think) of my
copy-and-paste problems on Linux. I run the following script
automatically at start-up.

#!/bin/sh
# See https://mutelight.org/subtleties-of-the-x-clipboard
autocutsel -fork
autocutsel -selection PRIMARY -fork

HTH,
Gary

--
--
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/20240127054055.GE26982%40phoenix.

Re: How to make gvim/vim-gtk3 behave exactly like vim

Christian Brabandt said on Fri, 19 Jan 2024 17:50:11 +0100

>On Fr, 19 Jan 2024, 'Ottavio Caruso' via vim_use wrote:
>> I also use vim on xterm on Linux. It just is difficult cut/copy/paste
>> data to/from, for example a web browser. Yes, it is possible, it is
>> just not that neat.
>
>And why would those be different between terminal Vim and Gui Vim?

Linux is a spectacular OS compared to Linux, but my workflow experience
is that Windows cut and paste is much simpler and easier to use than
Linux'. I'm not a fan of multiple paste buffers.

Linux cut and paste is different on lxterminal vs xterm, different on
xterm with and xterm without tmux, etc, so of course it will be
different depending on whether Vim is GUI or hosted on a terminal
emulator. These things aren't Vim's fault. The one thing I could blame
on Vim is that Shift+',Shift+8,yy doesn't do what I think it would do,
requiring middle mouse rather than Ctrl+v or Edit>Paste to paste.
Shift+',Shift++,yy is more what you want, but even then Ctrl+V won't
paste.

SteveT

Steve Litt

Autumn 2023 featured book: Rapid Learning for the 21st Century
http://www.troubleshooters.com/rl21

--
--
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/20240126134648.6cc287d5%40mydesk.domain.cxm.

Thursday, January 25, 2024

Re: Remapping crtl+backspace to delete previous word in insert mode!

On Wed, Jan 24, 2024 at 04:29:34AM -0800, Anirudh Singh Bhadauria wrote:
> Problem - Remapping crtl+backspace to delete previous word in insert mode! 
>
> I am finding it really hard to do this, I have tried many combinations but it
> just doesn't work.

I've this mapping for command-line editing mode that works in vim running in
gnome-terminal:

" Ctrl-Backspace deletes word backwards
cnoremap <C-BS> <C-W>
" (gnome-terminal sends ^H for ctrl-backspace)
cmap <C-H> <C-BS>

in my .vimrc. This config also works fine for nvim in gnome-terminal.
I haven't gone out of my way to test whether the same mapping will work
in insert mode, but I don't see any reason why it wouldn't.

HTH,
Marius Gedminas
--
I have, however, attempted to stamp out burning thermite (not recommended),
neglected to note that I'd lit the fuse of a homemade grenado (not recommended)
and only noticed I was standing in a cloud of gasoline vapour after I struck a
match (also not recommended).
-- James Nicoll

--
--
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/k3iah7qbfeikqufa6cvep2amtkv3qhjvb3jmgv4uv2e5dt37yz%40v7nccc54q34h.

Wednesday, January 24, 2024

Re: Any way to incorporate graphics into Gvim?

'meine' via vim_use said on Wed, 24 Jan 2024 20:44:47 +0100

>> >There are however ways to point to a picture for pre-print. When you
>> >
>> >This can eg. be done with basic markdown, see
>> >https://daringfireball.net/projects/markdown/basics at 'IMAGES'.
>> >LaTeX documents do the same.
>>
>> Yes. The TIO (Tab Indented Outline) to HTML presentation converter
>> I'm making will do this. Thanks for answering my question.
>
>For pre-print and processing take a look at `pandoc`. It is a program
>or series of software that interpretes basic input to make beautiful
>PDF.

Given my input file would be Tab Indented Outline (TIO), which of the
following allowed input formats would I use:

biblatex, bibtex, commonmark, commonmark_x, creole, csljson, csv,
docbook, docx, dokuwiki, epub, fb2, gfm, haddock, html, ipynb, jats,
jira, json, latex, man, markdown, markdown_github, markdown_mmd,
markdown_phpextra, markdown_strict, mediawiki, muse, native, odt, opml,
org, rst, rtf, t2t, textile, tikiwiki, twiki, vimwiki

t2t didn't work, it produced a PDF whose first paragraph was line
wrapped instead of respecting the newlines in my TIO. The default
markdown input format didn't work: On a short outline it removed the
indentation, and on a long outline it took forever (over 3 minutes) to
compile, so I Ctrl+C'ed out.

Thanks,

SteveT

Steve Litt

Autumn 2023 featured book: Rapid Learning for the 21st Century
http://www.troubleshooters.com/rl21

--
--
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/20240124172945.22f49557%40mydesk.domain.cxm.

Re: Any way to incorporate graphics into Gvim?

> >There are however ways to point to a picture for pre-print. When you
> >
> >This can eg. be done with basic markdown, see
> >https://daringfireball.net/projects/markdown/basics at 'IMAGES'. LaTeX
> >documents do the same.
>
> Yes. The TIO (Tab Indented Outline) to HTML presentation converter I'm
> making will do this. Thanks for answering my question.

For pre-print and processing take a look at `pandoc`. It is a program or
series of software that interpretes basic input to make beautiful PDF.

I use Vim to make documents and make PDF out of it with the help of
pandoc. Next to the mentioned basic markdown, you can also add LaTeX
commands to eg. skip page numbers and a lot more.

//meine

--
--
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/ZbFor0l4wZETcoRU%40trackstand.

Re: Remapping crtl+backspace to delete previous word in insert mode!

On Mi, 24 Jan 2024, Anirudh Singh Bhadauria wrote:

> Yes, I'm using nvim with lazyVim config

Then please ask in a neovim forum.


Thanks,
Christian
--
Linus? Whose that?
-- clueless newbie on #Linux

--
--
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/ZbEafR/tIHRLebWF%40256bit.org.

Re: Remapping crtl+backspace to delete previous word in insert mode!

Yes, I'm using nvim with lazyVim config

--
--
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/378418a8-5085-4a24-b69e-572a928b547an%40googlegroups.com.

Re: Remapping crtl+backspace to delete previous word in insert mode!

On Mi, 24 Jan 2024, Anirudh Singh Bhadauria wrote:

> Problem - Remapping crtl+backspace to delete previous word in insert mode! 
>
> I am finding it really hard to do this, I have tried many combinations but it just doesn't work.
> (however, I was able to remap just backspace to delete the previoius word, but that's not practical) Therefore, If anybody has a solution, that would be great! 

Are you trying this in a terminal or in the gui. Ctrl-Backspace may not
universally work.

>
> Remapping combinations that I tried so far, 
> -- vim.keymap.set("i", "<C-BS>", "<C-W>", { desc = "delete whole word" })
> -- vim.keymap.set("i", "<C-W>", "<C-\\><C-O>dB", { noremap = true, silent = true })
> -- vim.keymap.set("i", "<C-W>", "<C-\\><C-O>db", { noremap = true, silent = true })
> -- vim.api.nvim_set_keymap('i', '<BS>', '<C-\\><C-O>db', { noremap = true, silent = true }) (remaps backspace to delete the previoius word)

This is neovim config. Are you using Neovim?


Thanks,
Christian
--
The fact that people are poor or discriminated against doesn't necessarily
endow them with any special qualities of justice, nobility, charity or
compassion.
-- Saul Alinsky

--
--
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/ZbEEhosUk6QC44G%2B%40256bit.org.

Remapping crtl+backspace to delete previous word in insert mode!

Problem - Remapping crtl+backspace to delete previous word in insert mode! 

I am finding it really hard to do this, I have tried many combinations but it just doesn't work.
(however, I was able to remap just backspace to delete the previoius word, but that's not practical) Therefore, If anybody has a solution, that would be great! 

Remapping combinations that I tried so far, 
-- vim.keymap.set("i", "<C-BS>", "<C-W>", { desc = "delete whole word" })
-- vim.keymap.set("i", "<C-W>", "<C-\\><C-O>dB", { noremap = true, silent = true })
-- vim.keymap.set("i", "<C-W>", "<C-\\><C-O>db", { noremap = true, silent = true })
-- vim.api.nvim_set_keymap('i', '<BS>', '<C-\\><C-O>db', { noremap = true, silent = true }) (remaps backspace to delete the previoius word)

Thank you, 
Anirudh

--
--
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/79326a3e-f12a-46fe-beff-7cb7d70bd288n%40googlegroups.com.

Tuesday, January 23, 2024

Re: Any way to incorporate graphics into Gvim?

'meine' via vim_use said on Tue, 23 Jan 2024 19:21:13 +0100

>On Sun, Jan 21, 2024 at 11:31:13PM -0500, Steve Litt wrote:
>> Hi all,
>>
>> I'm pretty sure I already know the answer, but is there a way to
>> incorporate a .png or .svg into Gvim, right by the characters it
>> represents?
>
>Since Vim/Gvim is a _text_ editor, there is no way of displaying a
>picture inline in the view of the text.

Thanks meine. I figured this would be the answer.

>
>There are however ways to point to a picture for pre-print. When you
>print the text, the picture will be printed there where you pointed it.
>
>This can eg. be done with basic markdown, see
>https://daringfireball.net/projects/markdown/basics at 'IMAGES'. LaTeX
>documents do the same.

Yes. The TIO (Tab Indented Outline) to HTML presentation converter I'm
making will do this. Thanks for answering my question.

SteveT

Steve Litt

Autumn 2023 featured book: Rapid Learning for the 21st Century
http://www.troubleshooters.com/rl21

--
--
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/20240123224720.0e55c0e9%40mydesk.domain.cxm.

Re: Any way to incorporate graphics into Gvim?

On Sun, Jan 21, 2024 at 11:31:13PM -0500, Steve Litt wrote:
> Hi all,
>
> I'm pretty sure I already know the answer, but is there a way to
> incorporate a .png or .svg into Gvim, right by the characters it
> represents?

Since Vim/Gvim is a _text_ editor, there is no way of displaying a
picture inline in the view of the text.

There are however ways to point to a picture for pre-print. When you
print the text, the picture will be printed there where you pointed it.

This can eg. be done with basic markdown, see
https://daringfireball.net/projects/markdown/basics at 'IMAGES'. LaTeX
documents do the same.

//meine

--
--
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/ZbADmTb-aYLbMGyo%40trackstand.

[control cursor colour in normal mode and insert mode]

Dear all,

How are you? I hope all is well with you. I need help please. For some reason my cursor colour in Vim (in both: normal and insert mode) is no longer following the settings of the colour scheme. I have been using 'solarized8_light' colour scheme for a long time. I use it in both the terminal emulator Yakuake and in Vim itself. Initially the cursor is of its usual dark grey colour (please see a screenshot attached), but after a few commands it suddenly changes to white. White colour on the light background of the Solarized colour scheme makes my programming life miserable. On top of that I notice that this white cursor setting persists in Yakuake as well, when I exit Vim. Maybe it is not a Vim issue, but I would be very grateful for any advice on how to fix this. I use Vim 9.1 compiled by Arch Linux (Jan 2, 2024).  Thank you and have a great day ahead!

Best wishes,
Maxim


Maxim Abalenkov \\ maxim.abalenkov@gmail.com
+44 7 486 486 505 \\ www.maxim.abalenkov.uk

Sunday, January 21, 2024

Any way to incorporate graphics into Gvim?

Hi all,

I'm pretty sure I already know the answer, but is there a way to
incorporate a .png or .svg into Gvim, right by the characters it
represents?

Thanks,

SteveT

Steve Litt

Autumn 2023 featured book: Rapid Learning for the 21st Century
http://www.troubleshooters.com/rl21

--
--
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/20240121233113.7ee73788%40mydesk.domain.cxm.

Friday, January 19, 2024

Re: How to make gvim/vim-gtk3 behave exactly like vim

* 'Ottavio Caruso' via vim_use <vim_use@googlegroups.com> [240119 11:44]:
> Am 19/01/2024 um 16:25 schrieb Gary Johnson:
> > I don't know why you would have to learn different keyboard
> > combinations. Please elaborate on that.
>
> Then you say:
> >
> > It has been a goal of mine, too, to make gvim indistinguishable from
> > terminal vim. That's largely to make gvim on Windows behave the
> > same as terminal vim on Linux. I think I've done pretty well. As
> > it is, I sometimes have to check the title bar to see which one I'm
> > using.
>
> You answered your own question.

Not really. He has given a general answer when he is asking you for a
more specific answer (as have several others on this list).

An example would be:

Ctrl-V on gvim does ..., while on vim it does ....

If you can give a few keystrokes that behave differently, we can help
you find out why, and give suggestions for fixing it.

You can try «:verbose map» in your vim/gvim sessions and see if the
keystrokes you are concerned about have been remapped, and which script
remapped it. That might give you enough info to be able to fix it
yourself.

As others have said, in general a keystroke that does something in vim
will do the same thing in gvim, but gvim has some keystrokes that are
not available in vim. A script can easily map specific keystrokes
differently in vim than gvim, and the above "map" command should give
you some clues, if that is the problem.

I don't remember if you said which OS/distribution you are using.
Different distributions have different system-wide default vim
configuration files. This info might also give us a better idea how to
help you.

...Marvin

--
--
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/ZarcXlKKUOx/G9ZS%40basil.wdw.

Re: How to make gvim/vim-gtk3 behave exactly like vim

On 2024-01-19, 'Ottavio Caruso' via vim_use wrote:
> Am 19/01/2024 um 16:25 schrieb Gary Johnson:
> >On 2024-01-19, 'Ottavio Caruso' via vim_use wrote:
> >>Am 19/01/2024 um 13:26 schrieb jr:
> >>>hi,
> >>>
> >>>On Fri, 19 Jan 2024 at 12:26, 'Ottavio Caruso' via vim_use
> >>><vim_use@googlegroups.com> wrote:
> >>>>I have installed and uninstalled gvim many times. I have to re learn
> >>>>some (many) keyboard combinations. Is there a safe way to mod gvim to
> >>>>make it behave exactly like vim on the terminal?
> >>>
> >>>not sure I understand exactly, but you can create a '~/.gvimrc' to
> >>>complement your '~/.vimrc'.
> >>>
> >>
> >>And what should I put into ~/.gvimrc that would make gvim behave like vim?
> >
> >You don't need a separate gvimrc, just a vimrc. Using just the one
> >configuration file makes it simpler to keep the settings the same
> >for both gvim and vim.
> >
> >I don't know why you would have to learn different keyboard
> >combinations. Please elaborate on that.
>
> Then you say:
> >
> >It has been a goal of mine, too, to make gvim indistinguishable from
> >terminal vim. That's largely to make gvim on Windows behave the
> >same as terminal vim on Linux. I think I've done pretty well. As
> >it is, I sometimes have to check the title bar to see which one I'm
> >using.
>
> You answered your own question.

It is true that there are keyboard combinations available in the GUI
that are not available in the terminal, but anything that can be
done in the terminal can be done in the GUI using the same keyboard
combinations. You don't have to learn different keyboard
combinations, just always use those that work in the terminal.

> >I mostly use vim in an xterm on Linux, so I use only features
> >available in that configuration out of habit and don't miss any that
> >are available only in the GUI. I use a custom color scheme that
> >pretty much preserves vim's default colors and keeps them the same
> >on both gvim and vim.
>
> I also use vim on xterm on Linux. It just is difficult cut/copy/paste
> data to/from, for example a web browser. Yes, it is possible, it is
> just not that neat.

That's why I use autocutsel. Then I don't have to think about it.

Regards,
Gary

--
--
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/20240119165931.GD26982%40phoenix.

Re: How to make gvim/vim-gtk3 behave exactly like vim

On Fr, 19 Jan 2024, 'Ottavio Caruso' via vim_use wrote:
> I also use vim on xterm on Linux. It just is difficult cut/copy/paste
> data to/from, for example a web browser. Yes, it is possible, it is
> just not that neat.

And why would those be different between terminal Vim and Gui Vim?

Thanks,
Christian
--
Pilfering Treasury property is paticularly dangerous: big thieves are
ruthless in punishing little thieves.
-- Diogenes

--
--
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/ZaqoQ9O4h%2Bz3aMjH%40256bit.org.

Re: How to make gvim/vim-gtk3 behave exactly like vim

Am 19/01/2024 um 16:25 schrieb Gary Johnson:
> On 2024-01-19, 'Ottavio Caruso' via vim_use wrote:
>> Am 19/01/2024 um 13:26 schrieb jr:
>>> hi,
>>>
>>> On Fri, 19 Jan 2024 at 12:26, 'Ottavio Caruso' via vim_use
>>> <vim_use@googlegroups.com> wrote:
>>>> I have installed and uninstalled gvim many times. I have to re learn
>>>> some (many) keyboard combinations. Is there a safe way to mod gvim to
>>>> make it behave exactly like vim on the terminal?
>>>
>>> not sure I understand exactly, but you can create a '~/.gvimrc' to
>>> complement your '~/.vimrc'.
>>>
>>
>> And what should I put into ~/.gvimrc that would make gvim behave like vim?
>
> You don't need a separate gvimrc, just a vimrc. Using just the one
> configuration file makes it simpler to keep the settings the same
> for both gvim and vim.
>
> I don't know why you would have to learn different keyboard
> combinations. Please elaborate on that.

Then you say:
>
> It has been a goal of mine, too, to make gvim indistinguishable from
> terminal vim. That's largely to make gvim on Windows behave the
> same as terminal vim on Linux. I think I've done pretty well. As
> it is, I sometimes have to check the title bar to see which one I'm
> using.

You answered your own question.


>
> I mostly use vim in an xterm on Linux, so I use only features
> available in that configuration out of habit and don't miss any that
> are available only in the GUI. I use a custom color scheme that
> pretty much preserves vim's default colors and keeps them the same
> on both gvim and vim.


I also use vim on xterm on Linux. It just is difficult cut/copy/paste
data to/from, for example a web browser. Yes, it is possible, it is just
not that neat.


--
Ottavio Caruso

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

--
--
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/6c09647f-d90f-4858-8f35-acfc787ab10c%40yahoo.com.

Re: How to make gvim/vim-gtk3 behave exactly like vim

On 2024-01-19, 'Ottavio Caruso' via vim_use wrote:
> Am 19/01/2024 um 13:26 schrieb jr:
> >hi,
> >
> >On Fri, 19 Jan 2024 at 12:26, 'Ottavio Caruso' via vim_use
> ><vim_use@googlegroups.com> wrote:
> >>I have installed and uninstalled gvim many times. I have to re learn
> >>some (many) keyboard combinations. Is there a safe way to mod gvim to
> >>make it behave exactly like vim on the terminal?
> >
> >not sure I understand exactly, but you can create a '~/.gvimrc' to
> >complement your '~/.vimrc'.
> >
>
> And what should I put into ~/.gvimrc that would make gvim behave like vim?

You don't need a separate gvimrc, just a vimrc. Using just the one
configuration file makes it simpler to keep the settings the same
for both gvim and vim.

I don't know why you would have to learn different keyboard
combinations. Please elaborate on that.

It has been a goal of mine, too, to make gvim indistinguishable from
terminal vim. That's largely to make gvim on Windows behave the
same as terminal vim on Linux. I think I've done pretty well. As
it is, I sometimes have to check the title bar to see which one I'm
using.

The main difference is the behavior of :sh. I just don't use it
often in situations where I'm running gvim.

On Linux, it's important to use a vim built for X11 so that you have
access to the clipboard. I also run autocutsel, which keeps the
clipboard and the cut buffer synchronized so that I don't have to
remember the differences between them and which one I just copied
something into.

I mostly use vim in an xterm on Linux, so I use only features
available in that configuration out of habit and don't miss any that
are available only in the GUI. I use a custom color scheme that
pretty much preserves vim's default colors and keeps them the same
on both gvim and vim.

Regards,
Gary

--
--
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/20240119162526.GB26982%40phoenix.

Re: How to make gvim/vim-gtk3 behave exactly like vim

What keys combinations do you have to relearn?

On Friday, January 19, 2024 at 9:25:42 AM UTC-5 Ottavio Caruso wrote:
Am 19/01/2024 um 13:26 schrieb jr:
> hi,
>
> On Fri, 19 Jan 2024 at 12:26, 'Ottavio Caruso' via vim_use
> <vim...@googlegroups.com> wrote:
>> I have installed and uninstalled gvim many times. I have to re learn
>> some (many) keyboard combinations. Is there a safe way to mod gvim to
>> make it behave exactly like vim on the terminal?
>
> not sure I understand exactly, but you can create a '~/.gvimrc' to
> complement your '~/.vimrc'.
>

And what should I put into ~/.gvimrc that would make gvim behave like vim?

--
Ottavio Caruso

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

--
--
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/e4e57ca4-e53e-4774-b42a-e8260eac5a5an%40googlegroups.com.

Re: How to make gvim/vim-gtk3 behave exactly like vim

Am 19/01/2024 um 13:26 schrieb jr:
> hi,
>
> On Fri, 19 Jan 2024 at 12:26, 'Ottavio Caruso' via vim_use
> <vim_use@googlegroups.com> wrote:
>> I have installed and uninstalled gvim many times. I have to re learn
>> some (many) keyboard combinations. Is there a safe way to mod gvim to
>> make it behave exactly like vim on the terminal?
>
> not sure I understand exactly, but you can create a '~/.gvimrc' to
> complement your '~/.vimrc'.
>

And what should I put into ~/.gvimrc that would make gvim behave like vim?

--
Ottavio Caruso

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

--
--
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/0ee1d880-24a9-434a-ad43-8ab4dc75ce30%40yahoo.com.

Re: How to make gvim/vim-gtk3 behave exactly like vim

hi,

On Fri, 19 Jan 2024 at 12:26, 'Ottavio Caruso' via vim_use
<vim_use@googlegroups.com> wrote:
> I have installed and uninstalled gvim many times. I have to re learn
> some (many) keyboard combinations. Is there a safe way to mod gvim to
> make it behave exactly like vim on the terminal?

not sure I understand exactly, but you can create a '~/.gvimrc' to
complement your '~/.vimrc'.

--
regards, jr.

You have the right to free speech, as long as you're not dumb enough
to actually try it.
(The Clash 'Know Your Rights')

this email is intended only for the addressee(s) and may contain
confidential information. if you are not the intended recipient, you
are hereby notified that any use of this email, its dissemination,
distribution, and/or copying without prior written consent is
prohibited.

--
--
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/CAM-dBgoZkkSXO%3D0Mmox7AM1mPtjg_6yyU0J4VkrChSh6ppmO%3Dg%40mail.gmail.com.

Re: How to make gvim/vim-gtk3 behave exactly like vim

On Fr, 19 Jan 2024, 'Ottavio Caruso' via vim_use wrote:

> I have installed and uninstalled gvim many times. I have to re learn
> some (many) keyboard combinations. Is there a safe way to mod gvim to
> make it behave exactly like vim on the terminal?

Like what? There are some fundamental differences between a GUI and the
terminal version, some of it being that the terminal may not understand
all key combinations. But I really wonder what you mean with you have to
re-learn some key combinations?

Best,
Christian
--
Everything you read in newspapers is absolutely true, except for that
rare story of which you happen to have first-hand knowledge.
-- Erwin Knoll

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

How to make gvim/vim-gtk3 behave exactly like vim

I have installed and uninstalled gvim many times. I have to re learn
some (many) keyboard combinations. Is there a safe way to mod gvim to
make it behave exactly like vim on the terminal?

--
Ottavio Caruso

--
--
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/CAEJNuHx%2BtP725CGmhJAJWahjXHk4P1FsAndyeE7MO8Bn1MrTVQ%40mail.gmail.com.

Friday, January 12, 2024

Re: How to replace characters in visual block selection

Vim functions which take ranges take line ranges. So :'<,'>s/A/X/g — which would be the ensuing command — would start from "the beginning line of the selection" to "the last line of the selection". A substitution on that will do what is expected.

For your case, you should try a more targeted regex. I came up with :'<,'>s/\w\+ \zsAAA/XXX but my regex-fu is not at black belt yet.

Hope this helps

On Wed, Jan 10, 2024 at 10:23 PM Eike Rathke <list@erack.de> wrote:
Hi Igor,

On Wednesday, 2024-01-10 00:48:12 -0800, Igor wrote:

> I did:
> My cursor after opening a file is at first character in top left as
> expected.
> 1. Move 4 characters to the right: 4l
> 2. To get into visual block: CTRL+V
> 3. Select current and line bellow: j
> 4. Select text to tend of line: $
> 5. Now second column is selected. I would like do the substitution with:
> :s/A/X/g
> And now I get:
> XXX XXX
> XXX XXX
>
> How to substitute characters inside visual block?

Instead, with the block selection still intact, simply press s for
substitute and enter XXX and then Escape or Ctrl+[
It will substitute on all lines of the selected block.

  Eike

--
OpenPGP/GnuPG encrypted mail preferred in all private communication.
GPG key 0x6A6CD5B765632D3A - 2265 D7F3 A7B0 95CC 3918  630B 6A6C D5B7 6563 2D3A
Use LibreOffice! https://www.libreoffice.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/ZZ8Y-Rk-qY2RDF-U%40kulungile.erack.de.

--
--
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/CAOmRJrdGuKpmoziM3YVigr91%2B8v9p7ThWXOAQnsSrqFK2Sh1AQ%40mail.gmail.com.

Wednesday, January 10, 2024

Re: How to replace characters in visual block selection

Hi Igor,

On Wednesday, 2024-01-10 00:48:12 -0800, Igor wrote:

> I did:
> My cursor after opening a file is at first character in top left as
> expected.
> 1. Move 4 characters to the right: 4l
> 2. To get into visual block: CTRL+V
> 3. Select current and line bellow: j
> 4. Select text to tend of line: $
> 5. Now second column is selected. I would like do the substitution with:
> :s/A/X/g
> And now I get:
> XXX XXX
> XXX XXX
>
> How to substitute characters inside visual block?

Instead, with the block selection still intact, simply press s for
substitute and enter XXX and then Escape or Ctrl+[
It will substitute on all lines of the selected block.

Eike

--
OpenPGP/GnuPG encrypted mail preferred in all private communication.
GPG key 0x6A6CD5B765632D3A - 2265 D7F3 A7B0 95CC 3918 630B 6A6C D5B7 6563 2D3A
Use LibreOffice! https://www.libreoffice.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/ZZ8Y-Rk-qY2RDF-U%40kulungile.erack.de.