Friday, November 21, 2025

Re: inoremap and typing pace?

Hi Marc,

On Thu, 17 Apr 2025 10:07:41 +0200 Marc Chantreux wrote:

> hi Steven,
>
> I just realized I haven't replied this one. I read it but I'm in rush
> time for the moment so I'll investigate later.

It has been a few months, so I thought I should probably ask again.
Did you you have the time to have a look at this?

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 visit https://groups.google.com/d/msgid/vim_use/20251121134614.7947149d%40localhost.

Thursday, November 20, 2025

vim regexps and ERE and viml syntax

hello,

On Thu, Nov 20, 2025 at 05:24:20AM +0000, dvalin via vim_use wrote:
> [3]https://git.unistra.fr/mc/dot/-/blame/main/bin/tsveverything?ref_type=heads#L190
> Now, if vimscript were mostly awk, then we'd have the ultimate editor. :-)

Actually not :) awk is cool but

* its built in functions can be called with, user defined functions need parenthesis
* ithas no lambdas
* its array subscripts and datastructures are really limited
* it as no do (like in lisp or perl)
* ...

The viml of my dream is a mix of Raku (https://raku.org/) and viml itself.
the reason I wouldn't use neovim at all is because of the vim commands
you can directly use in viml like

:1
'a,34d

The problem is: Raku is huge. Maybe it's tunable enought to include vim
commands as slang (https://docs.raku.org/language/slangs)? IDK

but a raku+viml alien +

> > not to mention :so now support ranges \o/

would be the ultimate scripting langage (or maybe not: people from the APL
world have things to say about concision and readability. https://www.uiua.org/
seems impressive but I have no time to practice).

> > Again (because it was the goal of this mail): vim, in its actual
> > philosophy, is super important! Thanks a lot for maintaining it.

"actual" wasn't the good word: the *current* philosophy.

> decades makes life so much easier. (My only remaining wish would be Posix
> ERE regexes - the existing mish-mash of alternatives in Vim seems a lot of
> work and confusion, without quite getting there. Admittedly, \v comes
> close. And one just shells out to awk, when serious, anyway.)

Vim needs its own regexp engine because of patterns like

|/\%V| \%V \%V inside Visual area |/zero-width|
|/\%#| \%# \%# cursor position |/zero-width|
|/\%'m| \%'m \%'m mark m position |/zero-width|
|/\%l| \%23l \%23l in line 23 |/zero-width|
|/\%c| \%23c \%23c in column 23 |/zero-width|
|/\%v| \%23v \%23v in virtual column 23 |/zero-width|

I made my time to be confortable with it but now I'm really happy about
the vim regexp system now (I don't know how huge it is to maintain). I can
compare with grep: RE is the default but

ERE litteral insensitive
grep -E -F -i
vim \v \M \c

so I have

nnoremap / /\v
nnoremap ? ?\v

because

* most of the time, I want \v but sometimes I <del>M
* easier to remove \v (to come back to normal) than to type \v

to learn the basics of the syntax (when you have previous regexp
pexperience):

:h perl-patterns
:h /magic # the array comparing the syntaxes is very useful
:h /ordinary-atom

coming from perl and raku, I am sometimes frustrated (mostly because
there is no \x (like the //x) so we can write much more maintainable
regexps but things like M %% S (list of Ms separated by S) is also
really useful) but vim has some gems too like

\zs and \ze to start/end the match
\%[] : a sequence of optionally matched atoms

regards

--
Marc Chantreux

--
--
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 visit https://groups.google.com/d/msgid/vim_use/aR7PjvlSStF3-I-I%40prometheus.

Wednesday, November 19, 2025

Re: sort in .tsv file

On 18.11.25 13:38, Marc Chantreux wrote:
> And that makes the codebase bigger, more maintainance to do, more
> possible vulnerabilities.
>
> will you also implement awk ? I hope not and it doesn't stops me to have
> a plugin that make vim looks like a spreadsheet
>
>
> based on few lines of viml + an awk script
>

Now, if vimscript were mostly awk, then we'd have the ultimate editor. :-) (My spreadsheeting has not yet gone beyond including a line of awk in a data table file, then executing that with a Vim-mapped keystroke, or e.g. for rainfall, doing the awk monthly totalling in the shell-aliased editing command, so it runs on exit.)

> not to mention :so now support ranges \o/
>
> Actually I think vim does too much things and The *only* feature I miss
> today is a global PreSystem autocommand so you can setup environement
> variables.
>
>  au SystemPre {
>     $cf = expand("<cfile>")
>     $cF = expand("<cFILE>")
>     $cf = expand("<cword>")
>     $cF = expand("<cWORD>")
>  }
>
> so I have to prefix ! and system() calls myself.
>
> Again (because it was the goal of this mail): vim, in its actual
> philosophy, is super important! Thanks a lot for maintaining it.

Enthusiastically seconded. There's nothing else as good. All the folding methods are brilliant, for example. A .vimrc tweaked over a number of decades makes life so much easier. (My only remaining wish would be Posix ERE regexes - the existing mish-mash of alternatives in Vim seems a lot of work and confusion, without quite getting there. Admittedly, \v comes close. And one just shells out to awk, when serious, anyway.)

Erik


--
--
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 visit https://groups.google.com/d/msgid/vim_use/459bf14d-697e-41dc-926b-d1f0535cb5c7%40localhost.

Tuesday, November 18, 2025

Re: Re: Re: :sort in .tsv file

Subject: Re: :sort in .tsv file
On Mo, 17 Nov 2025, 'c.willis111 ' via vim_use wrote: > the /pattern/ feature of sort doesn't work if the recognized filetype is > .tsv (which gives alternate colours for successive fields). What exactly do you mean by this? Thanks, Christian -- 

 

Hi Christian

 

I have the .csv plugin.

 

When I use the pattern in the vim :sort command, it does not work as expected.

 

I was mistaken in an earlier message. I am sure this is due to the plugin. If I copy the file I am working on to a, so that the plugin no longer recognizes it as a .tsv, the sort works as I had expected originally. I then have to copy my result back to the .tsv file.

 

 

The question was, is there a neater way of using the vim sort.

 

regards - Chris

 

Hi Christian

 

it seems that if I type

 

  :filetype plugin off

 

before my sort command, the sort works, despite the screen still showing the plugin layout. (Despite the fact that I still need to use the letter keys for extending the line visual area, rather than the cursor keys).

 

regards - Chris

--
--
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 visit https://groups.google.com/d/msgid/vim_use/63d10be3.1c917.19a971ab937.Webtop.200%40btinternet.com.

Re: sort in .tsv file

hello,

On Tue, Nov 18, 2025 at 11:22:40AM +0100, Christian Brabandt wrote:
> On Di, 18 Nov 2025, dvalin via vim_use wrote:
> > Despite having used Vim for several decades now, I'm still allergic to
> > the effort to make Vim into Emacs, by doing stuff in-house in cases
> > where it's much easier to just use what's already provided on any *nix
> > distro. To perform those four sorts in Vim, with fewer keystrokes,
> > this works for me

that's why vim9 is so important: ! ( <range>! , w! r! ...), jobs and
channels, system(), libcall() and the ed inspiration remaining in the
vim9script with the new braces driven :command syntax is wonderful.
those make vim the only modern editor with the unix philosophy roots
(with others instead of becoming fat)

that's the main difference with neovim (the emacs of the ones who
started with vim). a better neovim is emacs over racket + a viper mode
that takes vim ergonomy (text objects and so on) more seriously but they
ends with vim+lua.

> While that is true, it doesn't help anybody who doesn't have GNU
> coreutils installed.

that's untrue: BSD tools (also available on macos), sbase, 9base,
busybox are that capable too. Yes, windows people are screwed but they
chosen their destiny :)

also: zsh (also default on macos too) is a much much better bash which
is really easy to combine with vim because of details like the twigil
for expansions (so you don't have to quote things when you !).

once you add your suffixes aliases in your ~/.zshenv, you can use
:!<cfile> or :!<cWORD> to open urls and files. at home I have

@ (
{fr,de,com,org,net,re,ninja}=url_opener
{git,gh}=git:latest
{wad,pk3}=wador
{png,gif,jpg,jpeg,bmp,tiff,tga,webp}=feh
{docx,xlsx,odt}=libreoffice
{html,svg}=chromium
{xcf}=gimp
{1..8}{,posix,plan9,p}=man
{ps,eps,pdf,djvu}='(){
>> ~/.was-read realpath "$@"
zathura "$@"
}'
{wav,mp3,ogg,flac,opus,mp4,mkv,webm}='(){
>> ~/.was-play realpath "$@"
vlc "$@"
}'
) alias -s $it

most of my "plugins" are just thin wrappers over tools I wrote to be
used outside vim so vim is just another environement to interact with a
global workflow

> That's the reason the :sort command was added to Vim.

And that makes the codebase bigger, more maintainance to do, more
possible vulnerabilities.

will you also implement awk ? I hope not and it doesn't stops me to have
a plugin that make vim looks like a spreadsheet

https://git.unistra.fr/mc/dot/-/blob/main/vim/pack/_/start/tsv/ftplugin/tsv.vim

based on few lines of viml + an awk script

https://git.unistra.fr/mc/dot/-/blob/main/vim/r/setvts.vim
https://git.unistra.fr/mc/dot/-/blame/main/bin/tsveverything?ref_type=heads#L190

not to mention :so now support ranges \o/

Actually I think vim does too much things and The *only* feature I miss
today is a global PreSystem autocommand so you can setup environement
variables.

au SystemPre {
$cf = expand("<cfile>")
$cF = expand("<cFILE>")
$cf = expand("<cword>")
$cF = expand("<cWORD>")
}

so I have to prefix ! and system() calls myself.

Again (because it was the goal of this mail): vim, in its actual
philosophy, is super important! Thanks a lot for maintaining it.

Marc

--
Marc Chantreux

--
--
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 visit https://groups.google.com/d/msgid/vim_use/aRxo1dPs8qFisgy3%40prometheus.

Re: Re: :sort in .tsv file

 

------ Original Message ------
From: cblists@256bit.org
To: vim_use@googlegroups.com
Sent: Tuesday, November 18th 2025, 10:24
Subject: Re: :sort in .tsv file
On Mo, 17 Nov 2025, 'c.willis111 ' via vim_use wrote: > the /pattern/ feature of sort doesn't work if the recognized filetype is > .tsv (which gives alternate colours for successive fields). What exactly do you mean by this? Thanks, Christian -- 

 

Hi Christian

 

I have the .csv plugin.

 

When I use the pattern in the vim :sort command, it does not work as expected.

 

I was mistaken in an earlier message. I am sure this is due to the plugin. If I copy the file I am working on to a, so that the plugin no longer recognizes it as a .tsv, the sort works as I had expected originally. I then have to copy my result back to the .tsv file.

 

 

The question was, is there a neater way of using the vim sort.

 

regards - Chris

--
--
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 visit https://groups.google.com/d/msgid/vim_use/705d04b9.1c2ab.19a96a9a0b7.Webtop.200%40btinternet.com.

Re: :sort in .tsv file

On Mo, 17 Nov 2025, 'c.willis111 ' via vim_use wrote:

> the /pattern/ feature of sort doesn't work if the recognized filetype is
> .tsv (which gives alternate colours for successive fields).

What exactly do you mean by this?

Thanks,
Christian
--
"We are on the verge: Today our program proved Fermat's next-to-last theorem."
-- Epigrams in Programming, ACM SIGPLAN Sept. 1982

--
--
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 visit https://groups.google.com/d/msgid/vim_use/aRxJK/MFm9DODaAV%40256bit.org.

Re: sort in .tsv file

On Di, 18 Nov 2025, dvalin via vim_use wrote:

> Despite having used Vim for several decades now, I'm still allergic to
> the effort to make Vim into Emacs, by doing stuff in-house in cases
> where it's much easier to just use what's already provided on any *nix
> distro. To perform those four sorts in Vim, with fewer keystrokes,
> this works for me:

While that is true, it doesn't help anybody who doesn't have GNU
coreutils installed. That's the reason the :sort command was added to
Vim.

Thanks,
Christian
--
Microbiology Lab: Staph Only!

--
--
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 visit https://groups.google.com/d/msgid/vim_use/aRxI8MVq6IY5B%2ByL%40256bit.org.

Re: Re: sort in .tsv file

 

------ Original Message ------
From: vim_use@googlegroups.com
To: vim_use@googlegroups.com
Sent: Tuesday, November 18th 2025, 01:42
Subject: Re: sort in .tsv file
 

On 17.11.25 19:13, Tim Chase wrote:
 
> On 2025-11-18 00:32, Vim Users wrote:
 
> > On 17.11.25 17:30, Tim Chase wrote:
 
> > >???? :2,$sort?? " sort by the first column
 
> > >???? :2,$sor /[^^I]*^I/???? " sort by the second column
 
> > >???? :2,$sor /\([^^I]*^I\)\{2}/ " sort by third column
 
> > >???? :2,$sor /\([^^I]*^I\)\{3}/ " sort by the fourth column
 
> > >???? :2,$sor n /\([^^I]*^I\)\{4}/ " sort numerically by the fifth column
 
> >
 
> > !}sort -k 1
 
>
 
> Even better!  At least as long as you're on a Unix-like system where
 
> sort(1) is competent (its availability on Windows is a bit less useful)
 
>
 
Hi Tim,
 
That's what I suspected, but having not used the MS OS or their other products in 30 years in IT, or privately this last half century, I didn't feel competent to comment there. My suggestions are, though, hopefully unixversal.  ;-)
Erik
 
 
 

 

-- 
Thanks for the responses.

 

Tim, I think it is the ,csv plugin that is interfering. Also, I don't understand the significance of your "^|". Though it is reminiscent of the | that the .csv plugin inserts for the tabs (in the screen view).

 

I have a field that always (in the area I am interested in, starts with 1, so I was using the pattern /\t1/. I did try /.*\t1/ which failed the same.

 

Dvalin - at present, (but not for long) on windows. The vim sort seems to do the job properly whereas the Windows sort case ignores regardless, and doesn't have the unix flexibility.

 

thanks both - Chris

--
--
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 visit https://groups.google.com/d/msgid/vim_use/89d7660.1bf2f.19a96682895.Webtop.200%40btinternet.com.

Monday, November 17, 2025

Re: sort in .tsv file

On 17.11.25 19:13, Tim Chase wrote:
> On 2025-11-18 00:32, Vim Users wrote:
> > On 17.11.25 17:30, Tim Chase wrote:
> > >???? :2,$sort?? " sort by the first column
> > >???? :2,$sor /[^^I]*^I/???? " sort by the second column
> > >???? :2,$sor /\([^^I]*^I\)\{2}/ " sort by third column
> > >???? :2,$sor /\([^^I]*^I\)\{3}/ " sort by the fourth column
> > >???? :2,$sor n /\([^^I]*^I\)\{4}/ " sort numerically by the fifth column
> >
> > !}sort -k 1
>
> Even better!  At least as long as you're on a Unix-like system where
> sort(1) is competent (its availability on Windows is a bit less useful)
>
Hi Tim,
That's what I suspected, but having not used the MS OS or their other products in 30 years in IT, or privately this last half century, I didn't feel competent to comment there. My suggestions are, though, hopefully unixversal.  ;-)
Erik


--
--
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 visit https://groups.google.com/d/msgid/vim_use/0892b57c-49dc-4b06-a65e-03d56d950373%40localhost.

Re: sort in .tsv file

On 2025-11-18 00:32, Vim Users wrote:
> On 17.11.25 17:30, Tim Chase wrote:
> >???? :2,$sort?? " sort by the first column
> >???? :2,$sor /[^^I]*^I/???? " sort by the second column
> >???? :2,$sor /\([^^I]*^I\)\{2}/ " sort by third column
> >???? :2,$sor /\([^^I]*^I\)\{3}/ " sort by the fourth column
> >???? :2,$sor n /\([^^I]*^I\)\{4}/ " sort numerically by the fifth column
>
> !}sort -k 1

Even better! At least as long as you're on a Unix-like system where
sort(1) is competent (its availability on Windows is a bit less useful)

-tim
--





--
--
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 visit https://groups.google.com/d/msgid/vim_use/aRvIQ6-0LjfdRQB7%40thechases.com.

Re: sort in .tsv file

On 17.11.25 17:30, Tim Chase wrote:
> On 2025-11-17 21:54, Vim Users wrote:
> > the /pattern/ feature of sort doesn't work if the recognized filetype
> > is .tsv (which gives alternate colours for successive fields).
> >
> > Is there a workaround, apart from copying it to a plain file and
> > working on it there?
>
> I'm not sure if you have some plugin interfering, but when I open a TSV
> file with the following contents:
>
>     $ cat test.tsv
>     h1 h2 h3 h4 h5
>     d  c  b  a  1
>     c  d  a  b  30
>     b  a  d  c  4
>     a  b  c  d  200
>
> I can issue the following commands to sort by the various columns:
>
>   :2,$sort  " sort by the first column
>   :2,$sor /[^^I]*^I/   " sort by the second column
>   :2,$sor /\([^^I]*^I\)\{2}/ " sort by third column
>   :2,$sor /\([^^I]*^I\)\{3}/ " sort by the fourth column
>   :2,$sor n /\([^^I]*^I\)\{4}/ " sort numerically by the fifth column
>

Despite having used Vim for several decades now, I'm still allergic to the effort to make Vim into Emacs, by doing stuff in-house in cases where it's much easier to just use what's already provided on any *nix distro. To perform those four sorts in Vim, with fewer keystrokes, this works for me:
Place the cursor on the first line after the column headings, then:
!}sort -k 1
Then hit 'u' for Vim undo, and:
!}sort -k 3
or whatever field you now want.
And without the undo, we've done a compound sort.
The "sort" manpage describes the various available sort criteria: dictionary, numeric, month, etc.
A "man -k sort" in another shell reveals alternative sorts you might have on hand.
Equally important, I feel, is that only one sort syntax and behaviour needs to be learnt for all common uses on the computer, whether in Vim, in commandline pipes, or shell scripts. Why buy into unnecessary brain fragmentation?

Erik

--
--
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 visit https://groups.google.com/d/msgid/vim_use/a42ef4ad-c7e4-4ed3-9bba-0394d692af6a%40localhost.

Re: :sort in .tsv file

On 2025-11-17 21:54, Vim Users wrote:
> the /pattern/ feature of sort doesn't work if the recognized filetype
> is .tsv (which gives alternate colours for successive fields).
>
> Is there a workaround, apart from copying it to a plain file and
> working on it there?

I'm not sure if you have some plugin interfering, but when I open a TSV
file with the following contents:

$ cat test.tsv
h1 h2 h3 h4 h5
d c b a 1
c d a b 30
b a d c 4
a b c d 200

I can issue the following commands to sort by the various columns:

:2,$sort " sort by the first column
:2,$sor /[^^I]*^I/ " sort by the second column
:2,$sor /\([^^I]*^I\)\{2}/ " sort by third column
:2,$sor /\([^^I]*^I\)\{3}/ " sort by the fourth column
:2,$sor n /\([^^I]*^I\)\{4}/ " sort numerically by the fifth column

So I'm uncertain what you're seeing or how you're sorting that differs.

-tim
--





--
--
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 visit https://groups.google.com/d/msgid/vim_use/aRuwJ25oNYdDa9at%40thechases.com.

:sort in .tsv file

Hi

the /pattern/ feature of sort doesn't work if the recognized filetype is .tsv (which gives alternate colours for successive fields).

 

Is there a workaround, apart from copying it to a plain file and working on it there?

 

regards - Chris

--
--
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 visit https://groups.google.com/d/msgid/vim_use/5a493103.16a35.19a93cfff75.Webtop.89%40btinternet.com.

Sign in to your Google Account

Sign in to your Google Account
rebbe.malachi.mailfeed@blogger.com

You're receiving this message because your Google Account has not been used in at least 8 months.

To keep your Google Account active, take a moment now to sign in.

If your Google Account is not used within a 2-year period, Google may delete your Google Account and its activity and data.

Learn more about the Inactive Google Account policy

You received this email to let you know about important changes to your Google Account and services.

Sunday, November 16, 2025

Re: VIM remote and Wayland


Op zaterdag 15 november 2025 om 18:57:04 UTC+1 schreef Christian Brabandt:
On Sa, 15 Nov 2025, Erik Slagter wrote:
> For some time now, I fear from the moment I switched to Wayland, my vim (either
> vim or gvim) do not create a "server" anymore. So --remote-tab doesn't work.
> Vim --serverlist returns no servers when I have a running gvim instance. This
> has been working for absolutely years!
>
> gvim --remote-tab says "E247: No registered server named "GVIM": Send failed.
> Trying to execute locally" as a result, always.
>
> gaia $ vim --serverlist
> gaia $ echo $DISPLAY
> :0
> gaia $ xhost
> access control disabled, clients can connect from any host
>
> Anyone, please? 

Recent Vims have support for using a socketserver. That should make it
work under Wayland I think.

So you're saying this is a known issue? I couldn't find anything on this when googling. 
 I guess I have a "recent" vim, so I'll will look into it, thanks!

> It helps if you tell us what kind of Vim you are using, so we can offer better help. You still did not
> mention 🙂 I am not sure the socketserver feature will help, but it sounds like it should, so please
> read up on this feature. See :h socketserver-clientserver

Not necessary, I already have it working, thanks! So, indeed, vim does not play nicely with Wayland regarding the "server" part. My vim version (from Fedora) is compiled with both X11 and Wayland support, which is nice, but for "server" use, it still chooses X11, which doesn't work (apparently).

This is the approach that works:

gaia erik: $ type vi
vi is an alias for /usr/bin/gvim --clientserver socket -f --remote-tab-silent

It would be nice if it could be a setting in the .vimrc file, but I don't think there is one.

--
--
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 visit https://groups.google.com/d/msgid/vim_use/da889d0c-f29e-416b-8153-f410df6a4132n%40googlegroups.com.

Saturday, November 15, 2025

Re: VIM remote and Wayland

On Sa, 15 Nov 2025, Erik Slagter wrote:

> Hi there,
>
> For some time now, I fear from the moment I switched to Wayland, my vim (either
> vim or gvim) do not create a "server" anymore. So --remote-tab doesn't work.
> Vim --serverlist returns no servers when I have a running gvim instance. This
> has been working for absolutely years!
>
> gvim --remote-tab says "E247: No registered server named "GVIM": Send failed.
> Trying to execute locally" as a result, always.
>
> gaia $ vim --serverlist
> gaia $ echo $DISPLAY
> :0
> gaia $ xhost
> access control disabled, clients can connect from any host
>
> Anyone, please? 

Recent Vims have support for using a socketserver. That should make it
work under Wayland I think.


Thanks,
Christian
--
You first parents of the human race... who ruined yourself for an apple,
what might you have done for a truffled turkey?
-- Brillat-savarin, "Physiologie du Gout"

--
--
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 visit https://groups.google.com/d/msgid/vim_use/aRi%2Bzf4iKAwbdJae%40256bit.org.

VIM remote and Wayland

Hi there,

For some time now, I fear from the moment I switched to Wayland, my vim (either vim or gvim) do not create a "server" anymore. So --remote-tab doesn't work. Vim --serverlist returns no servers when I have a running gvim instance. This has been working for absolutely years!

gvim --remote-tab says "E247: No registered server named "GVIM": Send failed. Trying to execute locally" as a result, always.

gaia $ vim --serverlist
gaia $ echo $DISPLAY
:0
gaia $ xhost
access control disabled, clients can connect from any host

Anyone, please? 

--
--
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 visit https://groups.google.com/d/msgid/vim_use/2cc0c314-d987-423a-847d-cd197c53e3abn%40googlegroups.com.

Monday, November 10, 2025

Re: Filtering and stderr

Hello

The ! is the shell escape. It will be using the shell, and redirecting can be done via shell redirects.

You can write a wrapper script that might take a file (or not) that will generate the file you want. In that shell script you might use shell redirects.

Or write/rewrite the utility that you will be using with !. That will create a file using stderr.

If you want to redirect to a buffer you can use the above again. But you might need to write a vim function, command and/or define mappings, based on your requirements.

Regards


On Mon, Nov 10, 2025, 20:16 BPJ <bpj@melroch.se> wrote:
Can I get stderr directed to another file or buffer with `:!` (other than using shell redirects)? I'm sure there is an option but I can't find it! :-)

/bpj

--
--
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 visit https://groups.google.com/d/msgid/vim_use/CADAJKhC1oJcpONmCfq4wAUP_otVTskw%2B_9Wk%2BQR-S1-bFq%2B2pg%40mail.gmail.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 visit https://groups.google.com/d/msgid/vim_use/CA%2Bek4BFzftAab%2BGSabq8TXxJ0J45T3xY1XRBTHYzHNL22OYHNw%40mail.gmail.com.

Re: Filtering and stderr

Regrettably, the short answer is no.


On 2025-11-10 12:16, BPJ wrote:
Can I get stderr directed to another file or buffer with `:!` (other than using shell redirects)? I'm sure there is an option but I can't find it! :-)

/bpj

--
--
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 visit https://groups.google.com/d/msgid/vim_use/CADAJKhC1oJcpONmCfq4wAUP_otVTskw%2B_9Wk%2BQR-S1-bFq%2B2pg%40mail.gmail.com.

Filtering and stderr

Can I get stderr directed to another file or buffer with `:!` (other than using shell redirects)? I'm sure there is an option but I can't find it! :-)

/bpj

--
--
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 visit https://groups.google.com/d/msgid/vim_use/CADAJKhC1oJcpONmCfq4wAUP_otVTskw%2B_9Wk%2BQR-S1-bFq%2B2pg%40mail.gmail.com.