Sunday, February 27, 2022

Re: Out_cb callback handler in vim9

Thank you Yegappan ! 


Nota:probably missunderstood this with porting the legacy vimscript function that has argslist.

Fu foo(...) 

a0[i]

Endfu


Le dim. 27 févr. 2022 à 15:08, Yegappan Lakshmanan <yegappanl@gmail.com> a écrit :
Hi,

On Sun, Feb 27, 2022 at 4:27 AM Ni Va <nivaemail@gmail.com> wrote:
>
> Hi All,
>
> In §9 of channel help is mentionned the legacy vimscript out_cb handler.
>
>
> " let job = job_start(command, {"out_cb": "MyHandler"})
> The function will be called with the channel and a message. You would define
> it like this: >
>     func MyHandler(channel, msg)
>     "
>
>
> I tried this def OutCb function but got the following  message error :
>
> " def OutCb(l: list<any>)

As described in the help, this function should accept two arguments.  The first
argument is the channel and the second argument is the message string.

>     # echomsg 'OutCb' .. string(l)
>     # eval [][0]
>   enddef
>
>   def ExitCb(l: list<any>)

This function also should accept two arguments. The first argument is the job
and the second argument is the exit status number.

- Yegappan

>     # echomsg 'ExitCb' .. string(l)
>     # sleep 1m
>     # source += l
>     # echomsg 'Exiting ' .. string(l) .. ' ' .. string(@z)
>   enddef
>
>   jobid = job_start(zip_cmd, { out_cb: OutCb, exit_cb:  ExitCb, mode: 'raw', timeout: 1200000 } ) "
>
> Error message:
> " This is a valid directory .
>   Jobid: process 14328 run
>   Press ENTER or type command to continue
>   E118: Too many arguments for function: <lambda>4 "
>
>
> How to port and deal with this in vim9 script that seems to have only one
> argue ?
>
> Thank you
> Nv
>

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to a topic in the Google Groups "vim_use" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_use/M65deWEN3O0/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/CAAW7x7mPGcK6GkO7hzVUq-F6XZDqBMXy%2BnibTMXCRhhUFhcAAw%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 on the web visit https://groups.google.com/d/msgid/vim_use/CAOKxv4F-kM8FO83-VcK86pBCnnCs7nadUda9Gg1T55gamA9VGQ%40mail.gmail.com.

Re: Out_cb callback handler in vim9

Hi,

On Sun, Feb 27, 2022 at 4:27 AM Ni Va <nivaemail@gmail.com> wrote:
>
> Hi All,
>
> In §9 of channel help is mentionned the legacy vimscript out_cb handler.
>
>
> " let job = job_start(command, {"out_cb": "MyHandler"})
> The function will be called with the channel and a message. You would define
> it like this: >
> func MyHandler(channel, msg)
> "
>
>
> I tried this def OutCb function but got the following message error :
>
> " def OutCb(l: list<any>)

As described in the help, this function should accept two arguments. The first
argument is the channel and the second argument is the message string.

> # echomsg 'OutCb' .. string(l)
> # eval [][0]
> enddef
>
> def ExitCb(l: list<any>)

This function also should accept two arguments. The first argument is the job
and the second argument is the exit status number.

- Yegappan

> # echomsg 'ExitCb' .. string(l)
> # sleep 1m
> # source += l
> # echomsg 'Exiting ' .. string(l) .. ' ' .. string(@z)
> enddef
>
> jobid = job_start(zip_cmd, { out_cb: OutCb, exit_cb: ExitCb, mode: 'raw', timeout: 1200000 } ) "
>
> Error message:
> " This is a valid directory .
> Jobid: process 14328 run
> Press ENTER or type command to continue
> E118: Too many arguments for function: <lambda>4 "
>
>
> How to port and deal with this in vim9 script that seems to have only one
> argue ?
>
> Thank you
> Nv
>

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAAW7x7mPGcK6GkO7hzVUq-F6XZDqBMXy%2BnibTMXCRhhUFhcAAw%40mail.gmail.com.

Re: Out_cb callback handler in vim9

> In §9 of channel help is mentionned the legacy vimscript out_cb handler.
>
>
> " let job = job_start(command, {"out_cb": "MyHandler"})
> The function will be called with the channel and a message. You would define
> it like this: >
> func MyHandler(channel, msg)
> "
>
>
> I tried this def OutCb function but got the following message error :
>
> " def OutCb(l: list<any>)
> # echomsg 'OutCb' .. string(l)
> # eval [][0]
> enddef
>
> def ExitCb(l: list<any>)
> # echomsg 'ExitCb' .. string(l)
> # sleep 1m
> # source += l
> # echomsg 'Exiting ' .. string(l) .. ' ' .. string(@z)
> enddef
>
> jobid = job_start(zip_cmd, { out_cb: OutCb, exit_cb: ExitCb, mode:
> 'raw', timeout: 1200000 } ) "
>
> Error message:
> " This is a valid directory .
> Jobid: process 14328 run
> Press ENTER or type command to continue
> E118: Too many arguments for function: <lambda>4 "
>
>
> How to port and deal with this in vim9 script that seems to have only one
> argue ?

In Vim9 script the type of the arguments is checked. That helps you
writing correct functions, and once written it is easier to read back.
It does require a bit of extra text.

Here is an exmple that will help you:

vim9script

# Create a channel log so we can see what happens.
ch_logfile('logfile', 'w')

var shell_job: job

# Function handling a line of text that has been typed.
def TextEntered(text: string)
# Send the text to a shell with Enter appended.
ch_sendraw(shell_job, text .. "\n")
enddef

# Function handling output from the shell: Add it above the prompt.
def GotOutput(channel: channel, msg: string)
append(line("$") - 1, "- " .. msg)
enddef

# Function handling the shell exits: close the window.
def JobExit(job: job, status: number)
quit!
enddef

# Start a shell in the background.
shell_job = job_start(["/bin/sh"], {
out_cb: GotOutput,
err_cb: GotOutput,
exit_cb: JobExit,
})

new
set buftype=prompt
var buf = bufnr('')
prompt_setcallback(buf, TextEntered)
prompt_setprompt(buf, "shell command: ")

# start accepting shell commands
startinsert


--
hundred-and-one symptoms of being an internet addict:
115. You are late picking up your kid from school and try to explain
to the teacher you were stuck in Web traffic.

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

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220227132532.984DD1C14BE%40moolenaar.net.

Out_cb callback handler in vim9

Hi All, 

In §9 of channel help is mentionned the legacy vimscript out_cb handler.


" let job = job_start(command, {"out_cb": "MyHandler"})
The function will be called with the channel and a message. You would define
it like this: >
    func MyHandler(channel, msg)  
    "


I tried this def OutCb function but got the following  message error :

" def OutCb(l: list<any>)
    # echomsg 'OutCb' .. string(l)
    # eval [][0]
  enddef

  def ExitCb(l: list<any>)
    # echomsg 'ExitCb' .. string(l)
    # sleep 1m
    # source += l
    # echomsg 'Exiting ' .. string(l) .. ' ' .. string(@z)
  enddef

  jobid = job_start(zip_cmd, { out_cb: OutCb, exit_cb:  ExitCb, mode: 'raw', timeout: 1200000 } ) "

Error message:
" This is a valid directory .
  Jobid: process 14328 run
  Press ENTER or type command to continue
  E118: Too many arguments for function: <lambda>4 "


How to port and deal with this in vim9 script that seems to have only one
argue ?

Thank you 
Nv

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/441f1b0e-3e42-4749-b5e7-96d663cc23a1n%40googlegroups.com.

Thursday, February 24, 2022

Re: Sven Guckes passed away

A very good article has been published by the Heise Verlag (probably the
best computer related publisher in the world):

https://www.heise.de/news/Vim-Versteher-und-Kommandozeilenerklaerer-Sven-Guckes-ist-tot-6511004.html

It is in German, auto-translation works OK.

--
Common sense is what tells you that the world is flat.

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

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220224193339.C6E2A1C04AB%40moolenaar.net.

Re: Blink shell touch actions to custom mouse actions

On 2022-02-24, Julius Hamilton wrote:

> On Wed 23. Feb 2022 at 19:34, Christian Brabandt wrote:

> I guess it depends on how your terminal receives those gestures. I am
> not sure, if a terminal can receive special mouse gestures like touch
> scroll but it really depends.
>
> Try in your terminal to go to insert mode, type Ctrl-V and then use one
> single gesture and see what vim receives.

> Awesome, thanks very much.
>
> What is the formal name of those character combinations?

One way to find the names is to type Ctrl-K instead of Ctrl-V before
generating the characters. For example, Ctrl-K followed by the left
arrow key will insert the six characters "<Left>".

See
:help i_CTRL-V
:help i_CTRL-K

> Then I will see about mapping them to mouse events I suppose?
>
> Or do the mouse events get mapped to Vim navigation commands or something?

See
:help mouse-overview
:help 09.2

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/20220224182036.GB19760%40phoenix.

Re: Blink shell touch actions to custom mouse actions

Awesome, thanks very much.

What is the formal name of those character combinations?

Then I will see about mapping them to mouse events I suppose?

Or do the mouse events get mapped to Vim navigation commands or something?

Thanks very much,
Julius



On Wed 23. Feb 2022 at 19:34, Christian Brabandt <cblists@256bit.org> wrote:

On Mi, 23 Feb 2022, Julius Hamilton wrote:

> Hey,
>
> I'm using iOS SSH apps (Blink shell; Termius) which support various touch gestures; I believe they get mapped to certain mouse actions in the terminal.
>
> I'd like to customise the effect of these touch gestures in Vim.
>
> I am pretty sure I can't change what mouse action a touch gesture corresponds to but I hopefully can change what Vim does on a certain mouse event.
>
> So for example, I would like accelerated scrolling, maybe when you hold and drag down, the speed of scrolling slowly speeds up. Or, if you press two fingers and swipe down, that's faster than just one finger.
>
> Can anyone recommend how I might remap mouse actions to accelerated scrolling in Vim?

I guess it depends on how your terminal receives those gestures. I am
not sure, if a terminal can receive special mouse gestures like touch
scroll but it really depends.

Try in your terminal to go to insert mode, type Ctrl-V and then use one
single gesture and see what vim receives.

Best,
Christian
--
Zwei Schafe auf der Wiese. Sagt das eine: "Määähhh!", darauf
das andere: "Mäh selbst!"

--
--
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/20220223183354.GF346149%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/CAEsMKX1MrhwWx82%2BuBw-eNycD%3DiSt2Oe8NUBjLhtePwQkjCkQw%40mail.gmail.com.

Wednesday, February 23, 2022

Re: Blink shell touch actions to custom mouse actions

On Mi, 23 Feb 2022, Julius Hamilton wrote:

> Hey,
>
> I'm using iOS SSH apps (Blink shell; Termius) which support various touch gestures; I believe they get mapped to certain mouse actions in the terminal.
>
> I'd like to customise the effect of these touch gestures in Vim.
>
> I am pretty sure I can't change what mouse action a touch gesture corresponds to but I hopefully can change what Vim does on a certain mouse event.
>
> So for example, I would like accelerated scrolling, maybe when you hold and drag down, the speed of scrolling slowly speeds up. Or, if you press two fingers and swipe down, that's faster than just one finger.
>
> Can anyone recommend how I might remap mouse actions to accelerated scrolling in Vim?

I guess it depends on how your terminal receives those gestures. I am
not sure, if a terminal can receive special mouse gestures like touch
scroll but it really depends.

Try in your terminal to go to insert mode, type Ctrl-V and then use one
single gesture and see what vim receives.

Best,
Christian
--
Zwei Schafe auf der Wiese. Sagt das eine: "Määähhh!", darauf
das andere: "Mäh selbst!"

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

Blink shell touch actions to custom mouse actions

Hey,

I'm using iOS SSH apps (Blink shell; Termius) which support various touch gestures; I believe they get mapped to certain mouse actions in the terminal.

I'd like to customise the effect of these touch gestures in Vim.

I am pretty sure I can't change what mouse action a touch gesture corresponds to but I hopefully can change what Vim does on a certain mouse event.

So for example, I would like accelerated scrolling, maybe when you hold and drag down, the speed of scrolling slowly speeds up. Or, if you press two fingers and swipe down, that's faster than just one finger.

Can anyone recommend how I might remap mouse actions to accelerated scrolling in Vim?

Thank you,
Julius




--
--
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/CAEsMKX2ssFXpYjc1z7JF5Mr0KHJJ12%2BAN5%3DsvwXKdW2nJ4jdAg%40mail.gmail.com.

Tuesday, February 22, 2022

Re: Sven Guckes passed away


On Tue, Feb 22, 2022, 05:41 Marc Chantreux <mc@unistra.fr> wrote:
> I remember how he would always be very helpful and extremely knowledgeable,
> but didn't suffer fools gladly, back in the late 90's and early 00's.

I don't remember him that way. He spent some time to elaborate answers.
From time to time, when the reader just kept asking for a solution
instead of a knowledge, he had some ... pushy answers, for sure but i
felt it was more against an attitude than a person.

I wasn't trying to create an argument or point of contention. It wasn't my intention to offend anybody's memory of Sven.

Please consider my comment withdrawn. 

Salman

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

Re: Sven Guckes passed away

> I remember how he would always be very helpful and extremely knowledgeable,
> but didn't suffer fools gladly, back in the late 90's and early 00's.

I don't remember him that way. He spent some time to elaborate answers.
From time to time, when the reader just kept asking for a solution
instead of a knowledge, he had some ... pushy answers, for sure but i
felt it was more against an attitude than a person.

--
Marc Chantreux
Direction du numérique de l'Université de Strasbourg
Pôle de Calcul et Services Avancés à la Recherche (CESAR)
http://annuaire.unistra.fr/p/20200

--
--
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/YhS93gsHRYsxvZfn%40prometheus.u-strasbg.fr.

Re: Sven Guckes passed away

> Our friend Sven Guckes died in Berlin on February 20, 2022.

So I will never meet the guy in person :(.

I remember me in the '90s reading all the emails from Sven just
because the expertise of the awsers he gave was excellent but
most importantly: the quality of the answers demonstrated his anger
to share his knowledge. Those kind of person who showed us what a
community should be.

:s/ve/n, Requiescat in pace.

marc

--
Marc Chantreux
Direction du numérique de l'Université de Strasbourg
Pôle de Calcul et Services Avancés à la Recherche (CESAR)
http://annuaire.unistra.fr/p/20200

--
--
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/YhS86VbEljHUDuMd%40prometheus.u-strasbg.fr.

Re: Sven Guckes passed away

Never met Sven, but I have appreciated his work in VIM for some time. I was very sad to see this news. Thoughts and prayers to Sven, his friends, and family.

On Monday, February 21, 2022 at 9:20:21 PM UTC-7 Philip Rhoades wrote:
Stan,


On 2022-02-22 05:47, Stan Brown wrote:
> That's sad news.
>
> I remember a number of interactions with Sven, in email and in various
> newsgroups, and he was always courteous, and generous with his time.
> He'll be missed.
>
> Bram, I like your idea to dedicate release 9 to his memory.


+1

Phil.


> --
> Stan Brown
> Tehachapi, CA, USA
> https://BrownMath.com
>
> On 2022-02-21 05:48, Bram Moolenaar wrote:
>>
>> Forwarding this text from Antonio Colombo:
>>
>> ==================
>>
>> Our friend Sven Guckes died in Berlin on February 20, 2022.
>> He was diagnosed with a brain tumor in December 2021.
>> He went to a hospital, but surgeons could not do much for him.
>> At the end of January he was moved to a Hospice.
>> A group of friends has been with him as much as possible during all
>> his
>> sickness.
>> He died while Pugs, one of his friends, was with him.
>> They had just finished a chat, and Sven was smiling, but then he
>> quieted
>> down and in a few moments he did not breathe any more.
>>
>> Sven (when he was still a student at the Free University of Berlin)
>> was very
>> active in the Vim development team in the Nineties. He was the one who
>> set
>> up the vim.org domain. Later on he had the idea of "What is Vim?", an
>> explanation of Vim in six kilobytes, and helped with some versions of
>> Vimtutor.
>>
>> Sven worked (and gave talks) also on a lot of other free software
>> projects,
>> let us remember here just "plain" vi and mutt, but there are several
>> others. He had friends all over the world, and helped them, for
>> software
>> problems and for real life problems in any way he could.
>>
>> Let us recall here just one of his "pet projects", the mythical
>> "alternate.fan.warlord" FAQ, in which appears one of his signatures,
>> in newsgroup alt.fan.warlord.
>>
>> Vale, Sven!
>>
>> ==================
>>
>>
>> I met Sven only a couple of times. What I remember most is his never
>> ending enthusiasm. He was a good person.
>>
>> I would like to dedicate the upcoming Vim 9.0 release to Sven in his
>> memory.
>>
>> Article in German:
>> https://linuxnews.de/2022/02/sven-guckes-verstorben/
>> Hacker news: https://news.ycombinator.com/item?id=30410077
>>
>
> --

--
Philip Rhoades

PO Box 896
Cowra NSW 2794
Australia
E-mail: ph...@pricom.com.au

--
--
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/beb54078-95f7-4ed9-a973-fd72c27660abn%40googlegroups.com.

Auto re-width Vertical Split to longest line visible in pane

People,

I routinely have a Vim window with two vertical splits giving me three
panes - the first two panes are views on a text file and the third pane
is a vertical terminal.

Is there a way for auto-sizing the width of the two left panes when I am
scrolling up and down in them so that the width of the pane is the
length of the longest visible line + one space?

This will allow for the third pane always having the greatest width for
doing terminal things while not truncating any lines in panes 1 and 2 .
.

Thanks,

Phil.
--
Philip Rhoades

PO Box 896
Cowra NSW 2794
Australia
E-mail: phil@pricom.com.au

--
--
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/0b04a53e84f00fa34744bc8823a8643c%40pricom.com.au.

Monday, February 21, 2022

Re: Sven Guckes passed away

Stan,


On 2022-02-22 05:47, Stan Brown wrote:
> That's sad news.
>
> I remember a number of interactions with Sven, in email and in various
> newsgroups, and he was always courteous, and generous with his time.
> He'll be missed.
>
> Bram, I like your idea to dedicate release 9 to his memory.


+1

Phil.


> --
> Stan Brown
> Tehachapi, CA, USA
> https://BrownMath.com
>
> On 2022-02-21 05:48, Bram Moolenaar wrote:
>>
>> Forwarding this text from Antonio Colombo:
>>
>> ==================
>>
>> Our friend Sven Guckes died in Berlin on February 20, 2022.
>> He was diagnosed with a brain tumor in December 2021.
>> He went to a hospital, but surgeons could not do much for him.
>> At the end of January he was moved to a Hospice.
>> A group of friends has been with him as much as possible during all
>> his
>> sickness.
>> He died while Pugs, one of his friends, was with him.
>> They had just finished a chat, and Sven was smiling, but then he
>> quieted
>> down and in a few moments he did not breathe any more.
>>
>> Sven (when he was still a student at the Free University of Berlin)
>> was very
>> active in the Vim development team in the Nineties. He was the one who
>> set
>> up the vim.org domain. Later on he had the idea of "What is Vim?", an
>> explanation of Vim in six kilobytes, and helped with some versions of
>> Vimtutor.
>>
>> Sven worked (and gave talks) also on a lot of other free software
>> projects,
>> let us remember here just "plain" vi and mutt, but there are several
>> others. He had friends all over the world, and helped them, for
>> software
>> problems and for real life problems in any way he could.
>>
>> Let us recall here just one of his "pet projects", the mythical
>> "alternate.fan.warlord" FAQ, in which appears one of his signatures,
>> in newsgroup alt.fan.warlord.
>>
>> Vale, Sven!
>>
>> ==================
>>
>>
>> I met Sven only a couple of times. What I remember most is his never
>> ending enthusiasm. He was a good person.
>>
>> I would like to dedicate the upcoming Vim 9.0 release to Sven in his
>> memory.
>>
>> Article in German:
>> https://linuxnews.de/2022/02/sven-guckes-verstorben/
>> Hacker news: https://news.ycombinator.com/item?id=30410077
>>
>
> --

--
Philip Rhoades

PO Box 896
Cowra NSW 2794
Australia
E-mail: phil@pricom.com.au

--
--
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/5ebd26e5023e15a08bd43c87ef47d166%40pricom.com.au.

Re: Sven Guckes passed away

Christian Brabandt wrote:
> On Mo, 21 Feb 2022, Bram Moolenaar wrote:
>
>> Forwarding this text from Antonio Colombo:
>>
>> ==================
>>
>> Our friend Sven Guckes died in Berlin on February 20, 2022.
>> He was diagnosed with a brain tumor in December 2021.
>> He went to a hospital, but surgeons could not do much for him.
>> At the end of January he was moved to a Hospice.
>> A group of friends has been with him as much as possible during all his
>> sickness.
>> He died while Pugs, one of his friends, was with him.
>> They had just finished a chat, and Sven was smiling, but then he quieted
>> down and in a few moments he did not breathe any more.
>>
>> Sven (when he was still a student at the Free University of Berlin) was very
>> active in the Vim development team in the Nineties. He was the one who set
>> up the vim.org domain. Later on he had the idea of "What is Vim?", an
>> explanation of Vim in six kilobytes, and helped with some versions of
>> Vimtutor.
>>
>> Sven worked (and gave talks) also on a lot of other free software projects,
>> let us remember here just "plain" vi and mutt, but there are several
>> others. He had friends all over the world, and helped them, for software
>> problems and for real life problems in any way he could.
>>
>> Let us recall here just one of his "pet projects", the mythical
>> "alternate.fan.warlord" FAQ, in which appears one of his signatures,
>> in newsgroup alt.fan.warlord.
>>
>> Vale, Sven!
>>
>> ==================
>>
>>
>> I met Sven only a couple of times. What I remember most is his never
>> ending enthusiasm. He was a good person.
>>
>> I would like to dedicate the upcoming Vim 9.0 release to Sven in his
>> memory.
>>
>> Article in German: https://linuxnews.de/2022/02/sven-guckes-verstorben/
>> Hacker news: https://news.ycombinator.com/item?id=30410077
>
So sorry to hear of Sven's passing. He was always very informative and
helpful.
Chip Campbell

--
--
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/156cff5c-9067-3668-be41-9a335f3c9aa2%40drchip.org.

Re: Sven Guckes passed away

That's sad news.

I remember a number of interactions with Sven, in email and in various
newsgroups, and he was always courteous, and generous with his time.
He'll be missed.

Bram, I like your idea to dedicate release 9 to his memory.

--
Stan Brown
Tehachapi, CA, USA
https://BrownMath.com

On 2022-02-21 05:48, Bram Moolenaar wrote:
>
> Forwarding this text from Antonio Colombo:
>
> ==================
>
> Our friend Sven Guckes died in Berlin on February 20, 2022.
> He was diagnosed with a brain tumor in December 2021.
> He went to a hospital, but surgeons could not do much for him.
> At the end of January he was moved to a Hospice.
> A group of friends has been with him as much as possible during all his
> sickness.
> He died while Pugs, one of his friends, was with him.
> They had just finished a chat, and Sven was smiling, but then he quieted
> down and in a few moments he did not breathe any more.
>
> Sven (when he was still a student at the Free University of Berlin) was very
> active in the Vim development team in the Nineties. He was the one who set
> up the vim.org domain. Later on he had the idea of "What is Vim?", an
> explanation of Vim in six kilobytes, and helped with some versions of
> Vimtutor.
>
> Sven worked (and gave talks) also on a lot of other free software projects,
> let us remember here just "plain" vi and mutt, but there are several
> others. He had friends all over the world, and helped them, for software
> problems and for real life problems in any way he could.
>
> Let us recall here just one of his "pet projects", the mythical
> "alternate.fan.warlord" FAQ, in which appears one of his signatures,
> in newsgroup alt.fan.warlord.
>
> Vale, Sven!
>
> ==================
>
>
> I met Sven only a couple of times. What I remember most is his never
> ending enthusiasm. He was a good person.
>
> I would like to dedicate the upcoming Vim 9.0 release to Sven in his
> memory.
>
> Article in German: https://linuxnews.de/2022/02/sven-guckes-verstorben/
> Hacker news: https://news.ycombinator.com/item?id=30410077
>

--
--
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/5ac241bd-5a9a-6995-c003-9ba49b8bda91%40fastmail.fm.

Re: Sven Guckes passed away

Very sad. 

I remember how he would always be very helpful and extremely knowledgeable, but didn't suffer fools gladly, back in the late 90's and early 00's. I would see his name on the email and knew I would learn something and possibly also be entertained at the same time. :)

Taken too soon. Again, very sad. 

Salman

On Mon, Feb 21, 2022, 10:56 Ruben Safir <ruben.safir@my.liu.edu> wrote:
On 2/21/22 10:34, Christian Brabandt wrote:
>
> On Mo, 21 Feb 2022, Bram Moolenaar wrote:
>
>>
>> Forwarding this text from Antonio Colombo:

I am very very sorry to hear this news and my condolences to you and his
family.


>>
>> ==================
>>
>> Our friend Sven Guckes died in Berlin on February 20, 2022.
>> He was diagnosed with a brain tumor in December 2021.
>> He went to a hospital, but surgeons could not do much for him.
>> At the end of January he was moved to a Hospice.
>> A group of friends has been with him as much as possible during all his
>> sickness.
>> He died while Pugs, one of his friends, was with him.
>> They had just finished a chat, and Sven was smiling, but then he quieted
>> down and in a few moments he did not breathe any more.
>>
>> Sven (when he was still a student at the Free University of Berlin) was very
>> active in the Vim development team in the Nineties. He was the one who set
>> up the vim.org domain. Later on he had the idea of "What is Vim?", an
>> explanation of Vim in six kilobytes, and helped with some versions of
>> Vimtutor.
>>
>> Sven worked (and gave talks) also on a lot of other free software projects,
>> let us remember here just "plain" vi and mutt, but there are several
>> others. He had friends all over the world, and helped them, for software
>> problems and for real life problems in any way he could.
>>
>> Let us recall here just one of his "pet projects", the mythical
>> "alternate.fan.warlord" FAQ, in which appears one of his signatures,
>> in newsgroup alt.fan.warlord.
>>
>> Vale, Sven!
>>
>> ==================
>>
>>
>> I met Sven only a couple of times.  What I remember most is his never
>> ending enthusiasm.  He was a good person.
>>
>> I would like to dedicate the upcoming Vim 9.0 release to Sven in his
>> memory.
>>
>> Article in German: https://linuxnews.de/2022/02/sven-guckes-verstorben/
>> Hacker news: https://news.ycombinator.com/item?id=30410077
>
> Oh no, very sad news :(
>
> I have never met him in person, but I remember his presence on various
> software projects and I was enjoyed reading his messages and learned
> very much from him.
>
> I have been through this last year with a very close relative, so I know
> the feelings and therefore wish the best for his family and friends in
> this dark times.
>
> What a sad day.
>
> Best,
> Christian


--
So many immigrant groups have swept through our town
that Brooklyn, like Atlantis, reaches mythological
proportions in the mind of the world - RI Safir 1998
http://www.mrbrklyn.com

DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
http://www.nylxs.com - Leadership Development in Free Software
http://www2.mrbrklyn.com/resources - Unpublished Archive
http://www.coinhangout.com - coins!
http://www.brooklyn-living.com

Being so tracked is for FARM ANIMALS and and extermination camps,
but incompatible with living as a free human being. -RI Safir 2013

--
--
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/259e0eaa-7f3e-fa9f-696b-29e5312d9c18%40my.liu.edu.

--
--
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/CANuxnEcDYz2%3Dxb3sMRthD_6OeV8Nq2z%3DjPQV00DxFO21We3FLA%40mail.gmail.com.

Re: Sven Guckes passed away

On 2/21/22 10:34, Christian Brabandt wrote:
>
> On Mo, 21 Feb 2022, Bram Moolenaar wrote:
>
>>
>> Forwarding this text from Antonio Colombo:

I am very very sorry to hear this news and my condolences to you and his
family.


>>
>> ==================
>>
>> Our friend Sven Guckes died in Berlin on February 20, 2022.
>> He was diagnosed with a brain tumor in December 2021.
>> He went to a hospital, but surgeons could not do much for him.
>> At the end of January he was moved to a Hospice.
>> A group of friends has been with him as much as possible during all his
>> sickness.
>> He died while Pugs, one of his friends, was with him.
>> They had just finished a chat, and Sven was smiling, but then he quieted
>> down and in a few moments he did not breathe any more.
>>
>> Sven (when he was still a student at the Free University of Berlin) was very
>> active in the Vim development team in the Nineties. He was the one who set
>> up the vim.org domain. Later on he had the idea of "What is Vim?", an
>> explanation of Vim in six kilobytes, and helped with some versions of
>> Vimtutor.
>>
>> Sven worked (and gave talks) also on a lot of other free software projects,
>> let us remember here just "plain" vi and mutt, but there are several
>> others. He had friends all over the world, and helped them, for software
>> problems and for real life problems in any way he could.
>>
>> Let us recall here just one of his "pet projects", the mythical
>> "alternate.fan.warlord" FAQ, in which appears one of his signatures,
>> in newsgroup alt.fan.warlord.
>>
>> Vale, Sven!
>>
>> ==================
>>
>>
>> I met Sven only a couple of times. What I remember most is his never
>> ending enthusiasm. He was a good person.
>>
>> I would like to dedicate the upcoming Vim 9.0 release to Sven in his
>> memory.
>>
>> Article in German: https://linuxnews.de/2022/02/sven-guckes-verstorben/
>> Hacker news: https://news.ycombinator.com/item?id=30410077
>
> Oh no, very sad news :(
>
> I have never met him in person, but I remember his presence on various
> software projects and I was enjoyed reading his messages and learned
> very much from him.
>
> I have been through this last year with a very close relative, so I know
> the feelings and therefore wish the best for his family and friends in
> this dark times.
>
> What a sad day.
>
> Best,
> Christian


--
So many immigrant groups have swept through our town
that Brooklyn, like Atlantis, reaches mythological
proportions in the mind of the world - RI Safir 1998
http://www.mrbrklyn.com

DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
http://www.nylxs.com - Leadership Development in Free Software
http://www2.mrbrklyn.com/resources - Unpublished Archive
http://www.coinhangout.com - coins!
http://www.brooklyn-living.com

Being so tracked is for FARM ANIMALS and and extermination camps,
but incompatible with living as a free human being. -RI Safir 2013

--
--
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/259e0eaa-7f3e-fa9f-696b-29e5312d9c18%40my.liu.edu.

Re: Sven Guckes passed away

On Mo, 21 Feb 2022, Bram Moolenaar wrote:

>
> Forwarding this text from Antonio Colombo:
>
> ==================
>
> Our friend Sven Guckes died in Berlin on February 20, 2022.
> He was diagnosed with a brain tumor in December 2021.
> He went to a hospital, but surgeons could not do much for him.
> At the end of January he was moved to a Hospice.
> A group of friends has been with him as much as possible during all his
> sickness.
> He died while Pugs, one of his friends, was with him.
> They had just finished a chat, and Sven was smiling, but then he quieted
> down and in a few moments he did not breathe any more.
>
> Sven (when he was still a student at the Free University of Berlin) was very
> active in the Vim development team in the Nineties. He was the one who set
> up the vim.org domain. Later on he had the idea of "What is Vim?", an
> explanation of Vim in six kilobytes, and helped with some versions of
> Vimtutor.
>
> Sven worked (and gave talks) also on a lot of other free software projects,
> let us remember here just "plain" vi and mutt, but there are several
> others. He had friends all over the world, and helped them, for software
> problems and for real life problems in any way he could.
>
> Let us recall here just one of his "pet projects", the mythical
> "alternate.fan.warlord" FAQ, in which appears one of his signatures,
> in newsgroup alt.fan.warlord.
>
> Vale, Sven!
>
> ==================
>
>
> I met Sven only a couple of times. What I remember most is his never
> ending enthusiasm. He was a good person.
>
> I would like to dedicate the upcoming Vim 9.0 release to Sven in his
> memory.
>
> Article in German: https://linuxnews.de/2022/02/sven-guckes-verstorben/
> Hacker news: https://news.ycombinator.com/item?id=30410077

Oh no, very sad news :(

I have never met him in person, but I remember his presence on various
software projects and I was enjoyed reading his messages and learned
very much from him.

I have been through this last year with a very close relative, so I know
the feelings and therefore wish the best for his family and friends in
this dark times.

What a sad day.

Best,
Christian
--

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

Re: How to bind scrolling horizontal split windows?

On 2022-02-21, Igor wrote:
> Hi,
> I am using Vim 7.4 on Linux.

> Now to the actual problem. I have text of multiple columns with header. When I
> move down a buffer I no longer see head of columns, so I vertically slit
> window. Top window is at first line position to see column headers, bottom
> window I use to see data in e.g. 1000 row. I can easily in e.g. column 5 the
> data in line 1000 and header from line 1. But when in e.g. bottom window I
> scroll to the right, I would like both windows to scroll to the right like they
> are bound together, so I can see e.g. 100 columns body and header, but instead
> only current buffer in current window is scrolled.

The 'scrollopt' option lets you choose to bind vertical scrolling
(the default), horizontal scrolling, or both.

:e some_file
:set nowrap
:set scrollopt-=ver
:set scrollopt+=hor
:set scrollbind
:split

See

:help 'scrollopt'

> Now instead of ":sp" in second command turn on vertical split screen ":vsp" How
> to turn on vertical scrollbind?

I'm not sure I understand you. Vertical scrollbinding is the
default. Do you mean that you want something like this, where the
buffer is vertically split but each half has the column headers
above it, with the vertically-split windows vertically scrollbound
while the horizontally-split windows are horizontally scrollbound?

+---------+---------+
| headers | headers |
+---------+---------+
| | |
| body | body |
| | |
+---------+---------+

Unfortunately for this case, 'scrollopt' is a global option. You
can have all scrollbound windows scroll together horizontally or
vertically (or both), but you can't have some windows bound
horizontally while others are bound vertically.

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/20220221140135.GA19760%40phoenix.

Sven Guckes passed away

Forwarding this text from Antonio Colombo:

==================

Our friend Sven Guckes died in Berlin on February 20, 2022.
He was diagnosed with a brain tumor in December 2021.
He went to a hospital, but surgeons could not do much for him.
At the end of January he was moved to a Hospice.
A group of friends has been with him as much as possible during all his
sickness.
He died while Pugs, one of his friends, was with him.
They had just finished a chat, and Sven was smiling, but then he quieted
down and in a few moments he did not breathe any more.

Sven (when he was still a student at the Free University of Berlin) was very
active in the Vim development team in the Nineties. He was the one who set
up the vim.org domain. Later on he had the idea of "What is Vim?", an
explanation of Vim in six kilobytes, and helped with some versions of
Vimtutor.

Sven worked (and gave talks) also on a lot of other free software projects,
let us remember here just "plain" vi and mutt, but there are several
others. He had friends all over the world, and helped them, for software
problems and for real life problems in any way he could.

Let us recall here just one of his "pet projects", the mythical
"alternate.fan.warlord" FAQ, in which appears one of his signatures,
in newsgroup alt.fan.warlord.

Vale, Sven!

==================


I met Sven only a couple of times. What I remember most is his never
ending enthusiasm. He was a good person.

I would like to dedicate the upcoming Vim 9.0 release to Sven in his
memory.

Article in German: https://linuxnews.de/2022/02/sven-guckes-verstorben/
Hacker news: https://news.ycombinator.com/item?id=30410077

--
hundred-and-one symptoms of being an internet addict:
91. It's Saturday afternoon in the middle of May and you
are on computer.

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

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220221134844.047981C0FE0%40moolenaar.net.

How to bind scrolling horizontal split windows?

Hi,
I am using Vim 7.4 on Linux.

Open text file:
:e some_file

Split the same buffer to another window:
:sp

Turn off long line wrap:
:set nowrap

Bind scrolling of both windows:
:set scrollbind

Now move up and down a buffer and both windows scroll together.

Now to the actual problem. I have text of multiple columns with header. When I move down a buffer I no longer see head of columns, so I vertically slit window. Top window is at first line position to see column headers, bottom window I use to see data in e.g. 1000 row. I can easily in e.g. column 5 the data in line 1000 and header from line 1. But when in e.g. bottom window I scroll to the right, I would like both windows to scroll to the right like they are bound together, so I can see e.g. 100 columns body and header, but instead only current buffer in current window is scrolled.

Now instead of ":sp" in second command turn on vertical split screen ":vsp" How to turn on vertical scrollbind?
Regards

--
--
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/31223dbc-a87f-472b-9c5e-b037cbe6b374n%40googlegroups.com.

Saturday, February 19, 2022

Proper use of histdel()

Hi everybody,

I'd like to delete the last 100 entries in command line history. I've tried
call histdel(":", -100) and various alternatives using histdel() but I don't get it to work.
So far the only way I've discovered is directly editing _viminfo,
but that's a bit cumbersome.

Any suggestions from experts welcome!

--
--
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/787eebbc-f590-4937-b595-4bd62ba8618cn%40googlegroups.com.

Thursday, February 17, 2022

Re: Vim9 - Can not get compile to recognize a deep variable

------- Original Message -------

On Wednesday, February 16th, 2022 at 3:27 PM, Chainsaw <chainsawuser@cfl.rr.com> wrote:

> Bram,
>
> First, thank you for Vim. What you have created is amazing, and has literally filled every void I had in my workflow, from text editing, to writing software to streamline specific tasks, and infinitely more. The only thing I don't like is I use Vim so much, that I find myself typing a ':' everywhere, on desktop, in title bar of browser, and I tried to save a file today in Word by typing ':w'.

I do this, too. I'm so accustomed to using Vim's shortcuts that I had to install Pentadactyl and its forks on my web browsers. It's the worst addiction; it's the best addiction.

--
--
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/OmSSSlXLpAq3G76Jsfr94NQwMBAthF7Bslm8k-GUzxWBPWdUWVFKpDEcZL4uqs8KiBOK75eXMdYUVWLkBkKxbU62YwqvuZyl0iCcUdqrTzs%3D%40protonmail.com.

Re: Vim9 - Can not get compile to recognize a deep variable

> In most cases you can use a script-local variable. In Vim9 script you
> can give these a type and that will be enforced. This works best,
> because references to the variable will be in the same script, the
> knowledge of what the variable is for and what it's type is is
> localized.

Exactly how I approach every new function, global is my last resort.

Thanks for your replies.
Samson

--
--
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/20220217090024.00005985%40cfl.rr.com.

Re: Vim9 - Can not get compile to recognize a deep variable

> Like 'var udp: list<string>', it would be nice to declare the global
> equivalent 'g:udp: list<any>' (redundant, but reminds me what Vim is
> expecting when I look at the code).

The problem is that the type can't be enforced. In legacy script it has
always been possible to assign anything to a global variable. Also it
can be deleted with :unlet and given a completely different value.

In most cases you can use a script-local variable. In Vim9 script you
can give these a type and that will be enforced. This works best,
because references to the variable will be in the same script, the
knowledge of what the variable is for and what it's type is is
localized.

Theoretically it would be possible to add a new type of global variable
that works differently. I do not see enough need for this, while it
does add complexity. And especially that when using g:someVar you don't
know where it was defined and what kind of variable it is.

--
hundred-and-one symptoms of being an internet addict:
56. You leave the modem speaker on after connecting because you think it
sounds like the ocean wind...the perfect soundtrack for "surfing the net".

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

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220217105912.852821C0FE0%40moolenaar.net.

Wednesday, February 16, 2022

Re: Vim9 - Can not get compile to recognize a deep variable

Ben,

Thanks for pinpoint information. I read that section earlier today and
overlooked the Global in that sentence.

Like 'var udp: list<string>', it would be nice to declare the global equivalent
'g:udp: list<any>' (redundant, but reminds me what Vim is expecting when I look
at the code).

Thanks again,
Samson

--
--
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/20220216225704.00006f2d%40cfl.rr.com.

Re: Vim9 - Can not get compile to recognize a deep variable

Samson,

global, buffer, window and tabpage variables do not have a specific type. This
is explained under ":help variable-types".

Ben


On 2022-02-16, Chainsaw wrote:
> Bram,
>
> First, thank you for Vim. What you have created is amazing, and has literally
> filled every void I had in my workflow, from text editing, to writing software
> to streamline specific tasks, and infinitely more. The only thing I don't like
> is I use Vim so much, that I find myself typing a ':' everywhere, on desktop,
> in title bar of browser, and I tried to save a file today in Word by typing ':w'.
>
> I put the 'udp' declaration outside of the function and made global. That worked,
> thank you. However, the declaration 'g:udp: list<string>' gives an E488 error.
> So, I tried 'g:udp = []' and that worked. Can you please explain the proper way
> to declare the list globally, because I thought the first way was correct.
>
> Thank you,
> Samson
>
>
>
>
> --
> --
> 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/20220216182719.00003249%40cfl.rr.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/Yg23RpVhCFouvrU/%40laptop.homenetwork.

Re: Vim9 - Can not get compile to recognize a deep variable

Bram,

First, thank you for Vim. What you have created is amazing, and has literally
filled every void I had in my workflow, from text editing, to writing software
to streamline specific tasks, and infinitely more. The only thing I don't like
is I use Vim so much, that I find myself typing a ':' everywhere, on desktop,
in title bar of browser, and I tried to save a file today in Word by typing ':w'.

I put the 'udp' declaration outside of the function and made global. That worked,
thank you. However, the declaration 'g:udp: list<string>' gives an E488 error.
So, I tried 'g:udp = []' and that worked. Can you please explain the proper way
to declare the list globally, because I thought the first way was correct.

Thank you,
Samson




--
--
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/20220216182719.00003249%40cfl.rr.com.

Re: Vim9 - Can not get compile to recognize a deep variable

> I have read through the Vim9.txt, and can not find a solution to this issue.
> When I call Parse(), the script version with the entire command on one line (|) gives error 'E121: Undefined variable: udp' in function add().
> Both commands work if used on the command line, so its particular to running in a Vim9 script.
>
> This works:
> def g:Parse(): void
> var udp: list<string>
>
> :3global/^\s*<per/substitute/^\s*<per\(.\{-}"\)\{2}\|\s\+>.*$//g
> :3substitute/\s\+.\{-}"\zs.\{-}\ze"/\=add(udp, submatch(0))/gn
> # :3global/^\s*<per/substitute/^\s*<per\(.\{-}"\)\{2}\|\s\+>.*$//g
> # | substitute/\s\+.\{-}"\zs.\{-}\ze"/\=add(udp, submatch(0))/gn
>
> echo udp
> enddef
>
> This does not work:
> def g:Parse(): void
> var udp: list<string>
>
> # :3global/^\s*<per/substitute/^\s*<per\(.\{-}"\)\{2}\|\s\+>.*$//g
> # :3substitute/\s\+.\{-}"\zs.\{-}\ze"/\=add(udp, submatch(0))/gn
> :3global/^\s*<per/substitute/^\s*<per\(.\{-}"\)\{2}\|\s\+>.*$//g
> | substitute/\s\+.\{-}"\zs.\{-}\ze"/\=add(udp, submatch(0))/gn
>
> echo udp
> enddef

This happens because when compiling the function, when the :substitute
command is separate, the compiler recognizes the "\=" in the
substitution. Then it works.

When joining the two lines the compiler only sees the ":global" command
and doesn't check for the "\=" argument.

This is nearly impossible to fix, because parsing the ":global" command
requires parsing just about any Ex command. That can only be done at
runtime, and then the local variable is not visible.

You'll have to use a workaround. You could make the "udp" variable a
global. That is what would happen in legacy script as well.

--
ERROR 047: Keyboard not found. Press RETURN to continue.

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

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220216221529.BD9C41C0FE0%40moolenaar.net.

Vim9 - Can not get compile to recognize a deep variable

Hello,

I have read through the Vim9.txt, and can not find a solution to this issue.
When I call Parse(), the script version with the entire command on one line (|) gives error 'E121: Undefined variable: udp' in function add().
Both commands work if used on the command line, so its particular to running in a Vim9 script.

This works:
def g:Parse(): void
var udp: list<string>

:3global/^\s*<per/substitute/^\s*<per\(.\{-}"\)\{2}\|\s\+>.*$//g
:3substitute/\s\+.\{-}"\zs.\{-}\ze"/\=add(udp, submatch(0))/gn
# :3global/^\s*<per/substitute/^\s*<per\(.\{-}"\)\{2}\|\s\+>.*$//g
# | substitute/\s\+.\{-}"\zs.\{-}\ze"/\=add(udp, submatch(0))/gn

echo udp
enddef

This does not work:
def g:Parse(): void
var udp: list<string>

# :3global/^\s*<per/substitute/^\s*<per\(.\{-}"\)\{2}\|\s\+>.*$//g
# :3substitute/\s\+.\{-}"\zs.\{-}\ze"/\=add(udp, submatch(0))/gn
:3global/^\s*<per/substitute/^\s*<per\(.\{-}"\)\{2}\|\s\+>.*$//g
| substitute/\s\+.\{-}"\zs.\{-}\ze"/\=add(udp, submatch(0))/gn

echo udp
enddef

Thanks,
Chainsaw

--
--
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/20220216115616.00007429%40cfl.rr.com.

Tuesday, February 15, 2022

Re: [VIM] Re: [VIM] Re: [VIM] Re: [VIM] Re: vim/colorschemes: Request For Comments

I have changed the name to those you suggest:

/home/cazzola/.vim/pack/bundle/start
└── colorschemes
├── colors
│   ├── blue.vim
│   ├── darkblue.vim
│   ├── delek.vim
│   ├── desert.vim
│   ├── elflord.vim
│   ├── evening.vim
│   ├── industry.vim
│   ├── koehler.vim
│   ├── morning.vim
│   ├── murphy.vim
│   ├── pablo.vim
│   ├── peachpuff.vim
│   ├── README.txt
│   ├── ron.vim
│   ├── shine.vim
│   ├── slate.vim
│   ├── tools
│   │   ├── check_colors.vim
│   │   ├── sample_base.vim
│   │   ├── sample_diff.vim
│   │   ├── sample_messages.vim
│   │   └── sample_popupmenu.vim
│   ├── torte.vim
│   └── zellner.vim
├── colortemplate
│   ├── blue.colortemplate
│   ├── darkblue.colortemplate
│   ├── delek.colortemplate
│   ├── desert.colortemplate
│   ├── _diff
│   ├── elflord.colortemplate
│   ├── evening.colortemplate
│   ├── industry.colortemplate
│   ├── koehler.colortemplate
│   ├── morning.colortemplate
│   ├── murphy.colortemplate
│   ├── pablo.colortemplate
│   ├── peachpuff.colortemplate
│   ├── ron.colortemplate
│   ├── shine.colortemplate
│   ├── slate.colortemplate
│   ├── _tcozero
│   ├── torte.colortemplate
│   └── zellner.colortemplate
└── README.md

but the final result doesn't change:

:verbose hi Normal
Normal xxx ctermfg=121 ctermbg=0 guifg=lightgreen guibg=Black
Last set from /usr/share/vim/vim82/colors/murphy.vim line 14

Walter

On Tue, 15 Feb 2022, Maxim Kim wrote:

>
>
> вторник, 15 февраля 2022 г. в 13:44:16 UTC+3, Walter Cazzola:
>
>> As replied to Romain, also the manual installation fails.
>>
>
> The directory structure I see is not what `:h packages` would suggest to
> have.
>
> In the end it should have smth like:
>
> /home/username/.vim/pack/bundle/start
> └── colorschemes
> ├── README.md
> ├── colors
> │·· ├── README.txt
> │·· ├── blue.vim
> │·· ├── darkblue.vim
> │·· ├── delek.vim
> │·· ├── desert.vim
> │·· ├── elflord.vim
> │·· ├── evening.vim
> │·· ├── industry.vim
> │·· ├── koehler.vim
> │·· ├── morning.vim
> │·· ├── murphy.vim
> │·· ├── pablo.vim
> │·· ├── peachpuff.vim
> │·· ├── ron.vim
> │·· ├── shine.vim
> │·· ├── slate.vim
> │·· ├── tools
> │·· │·· ├── check_colors.vim
> │·· │·· ├── sample_base.vim
> │·· │·· ├── sample_diff.vim
> │·· │·· ├── sample_messages.vim
> │·· │·· └── sample_popupmenu.vim
> │·· ├── torte.vim
> │·· └── zellner.vim
> ├── colortemplate
> │·· ├── _diff
> │·· ├── _tcozero
> │·· ├── blue.colortemplate
> │·· ├── darkblue.colortemplate
> │·· ├── delek.colortemplate
> │·· ├── desert.colortemplate
> │·· ├── elflord.colortemplate
> │·· ├── evening.colortemplate
> │·· ├── industry.colortemplate
> │·· ├── koehler.colortemplate
> │·· ├── morning.colortemplate
> │·· ├── murphy.colortemplate
> │·· ├── pablo.colortemplate
> │·· ├── peachpuff.colortemplate
> │·· ├── ron.colortemplate
> │·· ├── shine.colortemplate
> │·· ├── slate.colortemplate
> │·· ├── torte.colortemplate
> │·· └── zellner.colortemplate
> └── tags
>
>

--
Walter Cazzola, PhD, Associate Professor, Computer Science, Univ. of Milano
cazzola@di.unimi.it @w_cazzola Ph: +39 02 503 16300 HP: cazzola.di.unimi.it
· · · ---------------------------- · · · ---------------------------- · · ·
... recursive: adjective, see recursive ...
· · · ---------------------------- · · · ---------------------------- · · ·

--
--
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/a066444c-90e0-427f-bc97-fdf1cbb7981c%40di.unimi.it.

Re: [VIM] Re: [VIM] Re: [VIM] Re: vim/colorschemes: Request For Comments



вторник, 15 февраля 2022 г. в 13:44:16 UTC+3, Walter Cazzola:
As replied to Romain, also the manual installation fails.

The directory structure I see is not what `:h packages` would suggest to have.

In the end it should have smth like:

/home/username/.vim/pack/bundle/start
└── colorschemes
    ├── README.md
    ├── colors
    │·· ├── README.txt
    │·· ├── blue.vim
    │·· ├── darkblue.vim
    │·· ├── delek.vim
    │·· ├── desert.vim
    │·· ├── elflord.vim
    │·· ├── evening.vim
    │·· ├── industry.vim
    │·· ├── koehler.vim
    │·· ├── morning.vim
    │·· ├── murphy.vim
    │·· ├── pablo.vim
    │·· ├── peachpuff.vim
    │·· ├── ron.vim
    │·· ├── shine.vim
    │·· ├── slate.vim
    │·· ├── tools
    │·· │·· ├── check_colors.vim
    │·· │·· ├── sample_base.vim
    │·· │·· ├── sample_diff.vim
    │·· │·· ├── sample_messages.vim
    │·· │·· └── sample_popupmenu.vim
    │·· ├── torte.vim
    │·· └── zellner.vim
    ├── colortemplate
    │·· ├── _diff
    │·· ├── _tcozero
    │·· ├── blue.colortemplate
    │·· ├── darkblue.colortemplate
    │·· ├── delek.colortemplate
    │·· ├── desert.colortemplate
    │·· ├── elflord.colortemplate
    │·· ├── evening.colortemplate
    │·· ├── industry.colortemplate
    │·· ├── koehler.colortemplate
    │·· ├── morning.colortemplate
    │·· ├── murphy.colortemplate
    │·· ├── pablo.colortemplate
    │·· ├── peachpuff.colortemplate
    │·· ├── ron.colortemplate
    │·· ├── shine.colortemplate
    │·· ├── slate.colortemplate
    │·· ├── torte.colortemplate
    │·· └── zellner.colortemplate
    └── tags

--
--
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/ae16b47e-27a4-47a3-ad1f-6dff9b640d4en%40googlegroups.com.