Friday, March 31, 2023

i did know that

it's the CTRL-V before the a in the normal command

i knew i knew it -- sorry for the noise

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

Re: how to CTRL-A in a script

Try :execute "normal \<c-a>"

Otherwise, you'd have to embed an actual ctrl-A in your script by typing ctrl-v ctrl-a, which would put a 'weird' character in your script. 

I do have a version of the normal command (that I called, creatively, Normal) that lets me just do :Normal <c-a>. If you're interested, I can find its definition (I'm typing this from my phone).

Salman

On Fri, Mar 31, 2023, 22:34 tooth pik <toothpik6@gmail.com> wrote:
i know this is a stupid question and i'll slap my forehead and say i KNEW that when i find out, but...

a very useful feature of vim is the ability to hit CTRL-A in normal mode to increment whatever number is nearby by one -- but if i want to do the same thing in a script, normal CTRL-A is not the way

what is?

thx in advance,

toothpik

--
--
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/CALfSX1yKZsaTauDf6XfQ%3DG0beE8vAWGBV1MpQ5xP0tJrNEN%3Dmg%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/CANuxnEeBWZKQ3FOQBmr3MBCNmb_AxMwVfEUCEFvkbrFqxU_FtA%40mail.gmail.com.

how to CTRL-A in a script

i know this is a stupid question and i'll slap my forehead and say i KNEW that when i find out, but...

a very useful feature of vim is the ability to hit CTRL-A in normal mode to increment whatever number is nearby by one -- but if i want to do the same thing in a script, normal CTRL-A is not the way

what is?

thx in advance,

toothpik

--
--
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/CALfSX1yKZsaTauDf6XfQ%3DG0beE8vAWGBV1MpQ5xP0tJrNEN%3Dmg%40mail.gmail.com.

Re: What's the point of the "-i" switch? was : How do I replicate vim settings across two machines?

I have nothing to add, but I like Christian's signature with varying quotes.  I might search how to do that too :-)  Catherine Deneuve was all class.

On Saturday, 1 April 2023 at 00:40:51 UTC+10 Christian Brabandt wrote:

On Fr, 31 Mär 2023, 'Ottavio Caruso' via vim_use wrote:

> Follow up to this thread, see bottom post. I have been messing about with
> vim and I have used this command from my local machine:
>
> $ vim ~/external/docs/mlog -i ~/external/.viminfo
>
> From the manual:
>
> -i {viminfo}
> Specifies the filename to use when reading or writing the
> viminfo file, instead of the default "~/.viminfo". This
> can also be used to skip the use of the .viminfo file, by
> giving the name "NONE".
>
>
> But when I use this syntax, the cursor mark is still not at the same place
> where I left when I used vim directly on the remote machine.

I suppose because the filename is still stored twice within the viminfo
file with two different paths? Open your viminfo file (please make a
backup of it before messing with it) and search for the filename, for
which this issue occurs. You most likely find it there twice and you
need to make sure to have it there only once (with whatever path you
want to access the file).

> So, my question is, what is the practical point of this switch?

It uses a different viminfo file than the default one. By itself it
won't help, because you still have the problem, that you are editing the
same file under two different paths, so it looks like 2 different files
for Vim.

Best,
Christian
--
Die Religion hat viel Schlechtes und nur wenig Gutes hervorgebracht.
-- Claude Adrien Helvétius

--
--
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/d9863b0c-8ebe-47a9-b3e4-11f5ead7c98en%40googlegroups.com.

Re: What's the point of the "-i" switch? was : How do I replicate vim settings across two machines?

On Fr, 31 Mär 2023, 'Ottavio Caruso' via vim_use wrote:

> Follow up to this thread, see bottom post. I have been messing about with
> vim and I have used this command from my local machine:
>
> $ vim ~/external/docs/mlog -i ~/external/.viminfo
>
> From the manual:
>
> -i {viminfo}
> Specifies the filename to use when reading or writing the
> viminfo file, instead of the default "~/.viminfo". This
> can also be used to skip the use of the .viminfo file, by
> giving the name "NONE".
>
>
> But when I use this syntax, the cursor mark is still not at the same place
> where I left when I used vim directly on the remote machine.

I suppose because the filename is still stored twice within the viminfo
file with two different paths? Open your viminfo file (please make a
backup of it before messing with it) and search for the filename, for
which this issue occurs. You most likely find it there twice and you
need to make sure to have it there only once (with whatever path you
want to access the file).

> So, my question is, what is the practical point of this switch?

It uses a different viminfo file than the default one. By itself it
won't help, because you still have the problem, that you are editing the
same file under two different paths, so it looks like 2 different files
for Vim.

Best,
Christian
--
Die Religion hat viel Schlechtes und nur wenig Gutes hervorgebracht.
-- Claude Adrien Helvétius

--
--
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/ZCbw6gmivORY%2B5bt%40256bit.org.

What's the point of the "-i" switch? was : How do I replicate vim settings across two machines?

Follow up to this thread, see bottom post. I have been messing about
with vim and I have used this command from my local machine:

$ vim ~/external/docs/mlog -i ~/external/.viminfo

From the manual:

-i {viminfo}
Specifies the filename to use when reading or writing the
viminfo file, instead of the default "~/.viminfo". This
can also be used to skip the use of the .viminfo file, by
giving the name "NONE".


But when I use this syntax, the cursor mark is still not at the same
place where I left when I used vim directly on the remote machine.

So, my question is, what is the practical point of this switch?




-------- Weitergeleitete Nachricht --------
Betreff: Re: How do I replicate vim settings across two machines?
Datum: Tue, 14 Mar 2023 20:34:53 +0600
Von: Enan Ajmain <3nan.ajmain@gmail.com>
Antwort an: vim_use@googlegroups.com
An: 'Ottavio Caruso' via vim_use <vim_use@googlegroups.com>
Newsgruppen: gmane.editors.vim
Referenzen: <3578ec15-99a6-9fcc-1745-c79b93201585.ref@yahoo.com>
<3578ec15-99a6-9fcc-1745-c79b93201585@yahoo.com>
<ZBBcopAm3aXJ/AOA@256bit.org>
<885d99d6-60cc-d5ec-7971-58b07cc1f5f2@yahoo.com>

On Tue, 14 Mar 2023 14:09:47 +0000
"'Ottavio Caruso' via vim_use" <vim_use@googlegroups.com> wrote:
> Would it work if I sym-linked the remote .viminfo to the local one (or
> vice versa)?

First, you _have_ to do that. That's the way you share the info of
which line you closed a file on, etc. The problem Christian was talking
about was the difference in filenames of the same file. That question
comes _after_ you have made a shared .viminfo file (either by symlinking
or by using git).

Christian will be able to clarify better when they reply.


--
--
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/cb797b9e-93bc-6b56-0d7c-6e426b7eb941%40yahoo.com.

Tuesday, March 28, 2023

nice user article

Hi,

in mastodon, I stumbeld upon a nice post on stackoverflow, that IMHO is
worth reading. it is higer level Vi and Vim use, and worth for the usage
of our beloved editor:

https://stackoverflow.com/questions/1218390/what-is-your-most-productive-shortcut-with-vim/1220118#1220118

KR,

//meine

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

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

Monday, March 27, 2023

Re: alternating lines ?

> not sure how to explain it, but if i want to have one line that is of
> background of colorscheme, and line after that, to have like some sort of
> deviation in terms of highlight. and line after this, to be again,
> background of colorscheme.

Essentially, you want the video equivalent of "greenbar" printer paper.

--
--
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/2193d6619ff288bf31ff369417753733.squirrel%40webmail.vybenetworks.com.

Re: make it auto scroll horizontally

> how to make Vim, when it have long line, and my cursor is drawing end of
> window, that it just move half screen horizontally.
> so it detect automatically and move.

Maybe the 'sidescrolloff' option works for this?


--
MORTICIAN: What?
CUSTOMER: Nothing -- here's your nine pence.
DEAD PERSON: I'm not dead!
MORTICIAN: Here -- he says he's not dead!
CUSTOMER: Yes, he is.
DEAD PERSON: I'm not!
The Quest for the Holy Grail (Monty Python)

/// 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/20230327203405.9B35D1C128F%40moolenaar.net.

Re: alternating lines ?

On Mon, 27 Mar 2023 at 13:00, Igor Lerinc <igor.lerinc7@gmail.com> wrote:
> ... when it is further down, and also text is intended a lot ...

if using GNU/Linux and depending on your file's contents, of course,
you could perhaps use 'indent' or such to reformat the text
beforehand.

--
regards, jr.

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

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

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

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

Re: alternating lines ?

so, when i write this, this is how i like it
but then, it removes cursorcolumn and cursorline when it's activated.

any file loads badly. like, even if i fill file with only spaces ( \n ), it will be slow when i scrool it up and down. 
tried alacritty, but still same. 

is that implemented in others like Neovim ?

if so, what would you recommend me to do ? i really find easier for my eyes to have those stripes, or something similar others also use. When i look horizontally, to see relative numbers, that's fine, but when it is further down, and also text is intended a lot (text start at 50% vertically of page), i can't use this program in it's fullest speed, as my eyes lose track of what row it was, and i always mistake 3-4 up/down (if i use  j/k motions, which i usually do) 



On Monday, March 27, 2023 at 9:52:10 AM UTC+2 Christian Brabandt wrote:

On Mo, 27 Mär 2023, Igor Lerinc wrote:

> but i have performance issues.

This is not natively possible in Vim, so we have to fall-back to using
signs (which can color complete lines, not just only the text within a
line). However, to keep it in sync while editing, you have to refresh
the signs often, which causes a performance penalty. How big is your
fiel?

> and color it displays is grey. so not really useful..

You can of course customize the colors. Please read the help.

Best,
Christian
--
Wie man sein Kind nicht nennen sollte:
Ubo Ot

--
--
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/858ce469-493b-4ef9-890b-502f5fa5b0ffn%40googlegroups.com.

Re: alternating lines ?

On Mo, 27 Mär 2023, Igor Lerinc wrote:

> but i have performance issues.

This is not natively possible in Vim, so we have to fall-back to using
signs (which can color complete lines, not just only the text within a
line). However, to keep it in sync while editing, you have to refresh
the signs often, which causes a performance penalty. How big is your
fiel?

> and color it displays is grey. so not really useful..

You can of course customize the colors. Please read the help.

Best,
Christian
--
Wie man sein Kind nicht nennen sollte:
Ubo Ot

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

Re: alternating lines ?

here, this is my ideal how i want it to look.

from some again not optimal plugin

On Mon, Mar 27, 2023 at 9:15 AM jr <creature.eternal@gmail.com> wrote:
hi,

On Mon, 27 Mar 2023 at 07:33, Christian Brabandt <cblists@256bit.org> wrote:
> > "ledger" style.
> Like this https://vi.stackexchange.com/a/10162/71 ?

like that :-)  great, thanks.

--
regards, jr.

--
--
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/HP5g3_pCyhY/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/CAM-dBgqsEpLjX9J-sHZ%3DvTz8njhJ-UqmLYsSa6qPiug6A22Faw%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/CADZsa2rCz8yR1J8F%2B4t0MAjcwFLWzfJ89xXF5BkVboXTYZ41Rg%40mail.gmail.com.

Re: alternating lines ?

yes .

that's what i want. 
but i have performance issues. 

and color it displays is grey. so not really useful..

but that is what i want.

it looks like, most efficient way to do this is by editing colorscheme. 
can someone help me with that? 

like, every odd line, to have like embossed effect compared to normal color of colorscheme.
that would be ideal and not distracting

On Mon, Mar 27, 2023 at 8:34 AM Christian Brabandt <cblists@256bit.org> wrote:

On Mo, 27 Mär 2023, jr wrote:

> hi,
>
> On Mon, 27 Mar 2023 at 05:08, Igor Lerinc <igor.lerinc7@gmail.com> wrote:
> >
> > how to get sort of alternating lines ?
> > not sure how to explain it, but if i want to have one line that is of background of colorscheme, and line after that, to have like some sort of deviation in terms of highlight. and line after this, to be again, ...
>
> "ledger" style.  did a little googling but didn't get (any) useful results.

Like this https://vi.stackexchange.com/a/10162/71 ?

Best,
Christian
--
Schnell verdientes Geld wird auch schnell ausgegeben.
                -- Karin Berwind

--
--
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/HP5g3_pCyhY/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/ZCE40R2lkd8rStgV%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/CADZsa2p3dfDJjqbQXS4rHkmPAU-%3DSRT5g1SY09RqbngsL2bEAg%40mail.gmail.com.

Re: alternating lines ?

hi,

On Mon, 27 Mar 2023 at 07:33, Christian Brabandt <cblists@256bit.org> wrote:
> > "ledger" style.
> Like this https://vi.stackexchange.com/a/10162/71 ?

like that :-) great, thanks.

--
regards, jr.

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

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

Sunday, March 26, 2023

Re: alternating lines ?

On Mo, 27 Mär 2023, jr wrote:

> hi,
>
> On Mon, 27 Mar 2023 at 05:08, Igor Lerinc <igor.lerinc7@gmail.com> wrote:
> >
> > how to get sort of alternating lines ?
> > not sure how to explain it, but if i want to have one line that is of background of colorscheme, and line after that, to have like some sort of deviation in terms of highlight. and line after this, to be again, ...
>
> "ledger" style. did a little googling but didn't get (any) useful results.

Like this https://vi.stackexchange.com/a/10162/71 ?

Best,
Christian
--
Schnell verdientes Geld wird auch schnell ausgegeben.
-- Karin Berwind

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

make it auto scroll horizontally

how to make Vim, when it have long line, and my cursor is drawing end of window, that it just move half screen horizontally.
so it detect automatically and move.


--
--
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/a3a29b74-599d-44f4-a613-12c5df2b848cn%40googlegroups.com.

Re: alternating lines ?

hi,

On Mon, 27 Mar 2023 at 05:08, Igor Lerinc <igor.lerinc7@gmail.com> wrote:
>
> how to get sort of alternating lines ?
> not sure how to explain it, but if i want to have one line that is of background of colorscheme, and line after that, to have like some sort of deviation in terms of highlight. and line after this, to be again, ...

"ledger" style. did a little googling but didn't get (any) useful results.

--
regards, jr.

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

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

alternating lines ?

how to get sort of alternating lines ?
not sure how to explain it, but if i want to have one line that is of background of colorscheme, and line after that, to have like some sort of deviation in terms of highlight. and line after this, to be again, background of colorscheme.
something like i have for current line on cursor with

    :set cursorline
    :set cursorcolumn

but i want whole file what is displayed to have that. not too much (not too strong like cursorline, but still, sligthly noticeable, enought, so it can help me see in distance on what line some text resides. because, often I need to look up closer and see if the motion i'm gonna apply is really going to the line i want it to go (as often i miss it) and that slows me

using colorscheme atom-dark

--
--
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/134e5a46-6c5b-4925-9456-202e0849ef7fn%40googlegroups.com.

Re: [vim9script] Forward declarations for classes?

On 2023-03-26, Bram Moolenaar <Bram@moolenaar.net> wrote:
> The second one should just work. Currently the class is only defined
> when "endclass" is found. Doing it earlier is more implementation work,
> but it should not require anything on the user side.
>
> For the first example I'm not sure what the best solution is. There is
> a plan to add some kind of typedef, but it would still require something
> extra to indicate the actual implementation will follow later.

Typedefs would look super nice to me, but for another reason: type
aliasing would make my code a lot easier to read!

> There is trouble when it's not just the class name that needs to be
> known, but also what it contains. Then a forward declaration quickly
> becomes a lot of duplicate text. And recursive dependencies need to be
> handled, which is also relevant in this example.

Thanks for the thorough reply. This is not a blocker, at least for the
code I write, as `any` is a sufficiently good workaround, which perhaps
requires some extra care with typing in some cases, but nothing
dramatic. Looking forward to seeing these last issues being ironed out!

Life.

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

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

Re: [vim9script] Forward declarations for classes?

> Consider the following example:
>
> class Rgb
> this.r: float
> this.g: float
> this.b: float
>
> def ToHsv(): Hsv
> # ...
> enddef
> endclass
>
> class Hsv
> this.h: float
> this.s: float
> this.v: float
>
> def ToRgb(): Rgb
> # ...
> enddef
> endclass
>
> In a scenario like the above, the return type of ToHsv() must be changed
> to `any`. Is a mechanism to make the above code legal being considered?
>
> Of a similar flavour:
>
> class X
> def Clone(): X
> # Return a copy of this
> enddef
> endclass
>
> Currently, Clone() must be typed as `any`.

The second one should just work. Currently the class is only defined
when "endclass" is found. Doing it earlier is more implementation work,
but it should not require anything on the user side.

For the first example I'm not sure what the best solution is. There is
a plan to add some kind of typedef, but it would still require something
extra to indicate the actual implementation will follow later.

There is trouble when it's not just the class name that needs to be
known, but also what it contains. Then a forward declaration quickly
becomes a lot of duplicate text. And recursive dependencies need to be
handled, which is also relevant in this example.


--
ARTHUR: Will you ask your master if he wants to join my court at Camelot?!
GUARD #1: But then of course African swallows are not migratory.
GUARD #2: Oh, yeah...
GUARD #1: So they couldn't bring a coconut back anyway...
The Quest for the Holy Grail (Monty Python)

/// 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/20230326202817.7BA141C128A%40moolenaar.net.

[vim9script] Forward declarations for classes?

Consider the following example:

class Rgb
this.r: float
this.g: float
this.b: float

def ToHsv(): Hsv
# ...
enddef
endclass

class Hsv
this.h: float
this.s: float
this.v: float

def ToRgb(): Rgb
# ...
enddef
endclass

In a scenario like the above, the return type of ToHsv() must be changed
to `any`. Is a mechanism to make the above code legal being considered?

Of a similar flavour:

class X
def Clone(): X
# Return a copy of this
enddef
endclass

Currently, Clone() must be typed as `any`.

Thanks,
Life.

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

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

Monday, March 20, 2023

Re: digraph_get('NU') returns 0xA

thank you for the explanation! from the perspective of interpreting the output of digraph_get*() functions, would this be the case any time it returns 0x0A, or is this a special case for "NU"?

On Sun, Mar 19, 2023, 17:57 Bram Moolenaar <Bram@moolenaar.net> wrote:

> :echo char2nr(digraph_get('NU')) prints "10". this would seem to disagree
> with :h digraphs, which says that NU maps to "0" i.e. the null char. I
> don't think this is the result of an override as i certainly haven't tried
> to enact one and it happens even with -u NONE.

Since the NUL byte terminates a string in C, it is internally replaced
with NL, 0x0A.  When written to a file it is changed back to a NUL.
I most places you don't notice this, but sometimes it does.

> is this a bug?

Nope.

--
DINGO: Wicked wicked Zoot ... she is a bad person and she must pay the
       penalty.  And here in Castle Anthrax, we have but one punishment
       ... you must tie her down on a bed ... and spank her.  Come!
GIRLS: A spanking!  A spanking!
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

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

Sunday, March 19, 2023

Re: Vim

Hi,

On Sun, 19 Mar 2023 15:23:55 -0700 (PDT)
"rwmit...@gmail.com" <rwmitchell@gmail.com> wrote:

> Without knowing what you did when you installed it, I don't think it an be
> answered universally.
>
> What OS are you using?
> What command did you run to install vim?
>
> Assuming you're on a unix system, removing both $HOME/.vimrc and $HOME/.vim
> will likely remove anything you did to customize vim and it is very
> unlikely the vim app/program is actually corrupt.
>

one should really use a "dotfiles" repo. E.g.:

* https://github.com/search?utf8=%E2%9C%93&q=dotfiles

* https://github.com/shlomif/shlomif-computer-settings/

> On Sunday, March 19, 2023 at 5:42:02 PM UTC-4 Norman Bench wrote:
>
> > How do I uninstall vim?
> >
> > I want to start over
> >
> > And how do I go about doing this?
> >
>



--

Shlomi Fish https://www.shlomifish.org/
https://youtu.be/xZLwtc9x4yA - Anime in Real Life!! (Parody)

Chuck Norris once wrote a 10 million lines C++ program in Microsoft Notepad
without having to use the backspace key. And it compiled without errors or
warnings, and was 100% bug‐free.

Please reply to list if it's a mailing list post - https://shlom.in/reply .

--
--
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/20230320061507.550d0d0f%40shlomifish.org.

Re: Vim

Without knowing what you did when you installed it, I don't think it an be answered universally.

What OS are you using?
What command did you run to install vim?

Assuming you're on a unix system, removing both $HOME/.vimrc and $HOME/.vim will likely remove anything you did to customize vim and it is very unlikely the vim app/program is actually corrupt.

On Sunday, March 19, 2023 at 5:42:02 PM UTC-4 Norman Bench wrote:
How do I uninstall vim?

I want to start over

And how do I go about doing this?

--
--
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/125ed95a-bd6c-4c86-908f-918b387b0052n%40googlegroups.com.

Re: Vim

On 3/19/23 17:42, Norman Bench wrote:
> How do I uninstall vim?
>
> I want to start over
>
> And how do I go about doing this?
>


rm vim

--
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/fff8efb2-0b67-d9d8-d451-876477006dcd%40my.liu.edu.

Re: digraph_get('NU') returns 0xA

> :echo char2nr(digraph_get('NU')) prints "10". this would seem to disagree
> with :h digraphs, which says that NU maps to "0" i.e. the null char. I
> don't think this is the result of an override as i certainly haven't tried
> to enact one and it happens even with -u NONE.

Since the NUL byte terminates a string in C, it is internally replaced
with NL, 0x0A. When written to a file it is changed back to a NUL.
I most places you don't notice this, but sometimes it does.

> is this a bug?

Nope.

--
DINGO: Wicked wicked Zoot ... she is a bad person and she must pay the
penalty. And here in Castle Anthrax, we have but one punishment
... you must tie her down on a bed ... and spank her. Come!
GIRLS: A spanking! A spanking!
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

/// 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/20230319215736.CCD371C135C%40moolenaar.net.

Vim

How do I uninstall vim?

I want to start over

And how do I go about doing this?

--
--
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/75a6e1ef-24fc-4e43-87ca-896eddff02b1n%40googlegroups.com.

digraph_get('NU') returns 0xA

:echo char2nr(digraph_get('NU')) prints "10". this would seem to disagree with :h digraphs, which says that NU maps to "0" i.e. the null char. I don't think this is the result of an override as i certainly haven't tried to enact one and it happens even with -u NONE.

is this a bug?

--
--
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/CAJdN7Ki4igOsyruu14%3DxcTBjY_HeP%2BY3tXRXFqFp%3DsG-LrW4Wg%40mail.gmail.com.

Re: Beginner? How do I fix these error messeges

You certainly can! This would depend on your OS and your package manager.

You can always download the source and build it in any folder you want.

On Sun, Mar 19, 2023 at 11:54 AM Norman Bench <bmystic65@gmail.com> wrote:
Thanks for your help but I think I just want to start over, if that is possible?
Is there a way I can uninstall vim, and then download vim to a directory of my choosing?

Thank you
Norman

On Thursday, March 16, 2023 at 1:02:58 PM UTC-5 Owajigbanam Ogbuluijah wrote:
Are you trying to write out TODO.vim, or does it already exist on the interwebs? I asked this because it would be nice to read the code and see what is really going on here. Without this, here are a few tips
  • You can search the help for any error you see, :h 484 should tell you give you more information on the first error
  • First error looks like you're trying to load a file which doesn't exist. From the file path, looks like you have your home path scoped under Vim's runtime path. May wanna check that
  • 492 is an error when you call some function that doesn't exist. Note, if you define a function in a script with vim9script, you'd have to make that function global by defining it as def g:FuncName
Hopefully this helps

On Thu, Mar 16, 2023 at 5:17 PM Norman Bench <bmys...@gmail.com> wrote:


On 3/16/23 07:09, Norman Bench wrote:
Line1

line3
using unix
--
--
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/jJfQWQjUtK0/unsubscribe.orman@norman-desktop:~/vim$ vim filelist
Error detected while processing /home/norman/.vimrc:
line    1:
E484: Can't open file /usr/local/share/vim/vim90/vimrc_example.vim/home/norman/.vim/vimrc
line    3:
E492: Not an editor command: $HOME/.vim/plugged/TODO.vim/plugin/TODO.vim
Press ENTER or type command to continue
Beginner user...anyway I don't know what i did,and don't know how to fix it?


Thank you!

Norman Bench

To unsubscribe from this group and all its topics, send an email to vim_use+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/6c42d16c-598e-4bea-b6ba-b7ee2c750c2cn%40googlegroups.com.



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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/4f216849-9d7f-a7f8-e2f2-43f0db5475dc%40gmail.com.

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

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

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

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

Re: Displaying the British pound key using the compose key

On 2023-03-18 21:02, cjsmall wrote:
> However, I've been using the Compose key on my Sun Type 6 keyboard to
> enter most of the Unicode characters, simply replacing Ctrl-K
> with Compose. So far this has worked with every digraph
> combination except the British Pound symbol. "Compose $ $" just
> inputs a $. Is there some mapping I could place in my .vimrc file
> that would generate the same output?

The Compose key is a thing in X before it ever reaches the terminal
or even vim. I prefer the default

<Compose> L -

which feels much more intuitive to me (I do all such character
compositions through the X Compose key and never use vim's digraphs
unless I'm helping someone with a vim digraph-related issue).

However, if you do want

<Compose> $ $

to make the British Pound symbol, you can create a ~/.XCompose file,
something like

$ cat >> ~/.XCompose

include "%L"
<Multi_key> <$> <$>
^D

I'm not exactly positive on the notation for the dollar key, so it
might be something like

<dollar>

instead of

<$>

but you can use xev(1) to show the key-name.

You might then have to restart vim (or possibly even restart your
X session)

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

Re: Beginner? How do I fix these error messeges

Thanks for your help but I think I just want to start over, if that is possible?
Is there a way I can uninstall vim, and then download vim to a directory of my choosing?

Thank you
Norman

On Thursday, March 16, 2023 at 1:02:58 PM UTC-5 Owajigbanam Ogbuluijah wrote:
Are you trying to write out TODO.vim, or does it already exist on the interwebs? I asked this because it would be nice to read the code and see what is really going on here. Without this, here are a few tips
  • You can search the help for any error you see, :h 484 should tell you give you more information on the first error
  • First error looks like you're trying to load a file which doesn't exist. From the file path, looks like you have your home path scoped under Vim's runtime path. May wanna check that
  • 492 is an error when you call some function that doesn't exist. Note, if you define a function in a script with vim9script, you'd have to make that function global by defining it as def g:FuncName
Hopefully this helps

On Thu, Mar 16, 2023 at 5:17 PM Norman Bench <bmys...@gmail.com> wrote:


On 3/16/23 07:09, Norman Bench wrote:
Line1

line3
using unix
--
--
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/jJfQWQjUtK0/unsubscribe.orman@norman-desktop:~/vim$ vim filelist
Error detected while processing /home/norman/.vimrc:
line    1:
E484: Can't open file /usr/local/share/vim/vim90/vimrc_example.vim/home/norman/.vim/vimrc
line    3:
E492: Not an editor command: $HOME/.vim/plugged/TODO.vim/plugin/TODO.vim
Press ENTER or type command to continue
Beginner user...anyway I don't know what i did,and don't know how to fix it?


Thank you!

Norman Bench

To unsubscribe from this group and all its topics, send an email to vim_use+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/6c42d16c-598e-4bea-b6ba-b7ee2c750c2cn%40googlegroups.com.



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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/4f216849-9d7f-a7f8-e2f2-43f0db5475dc%40gmail.com.

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

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

Saturday, March 18, 2023

Displaying the British pound key using the compose key

Vim 8.2

In vim I can enter the British Pound symbol with "Ctrl-K $ $" just fine.
However, I've been using the Compose key on my Sun Type 6 keyboard to enter
most of the Unicode characters, simply replacing Ctrl-K with Compose.  So
far this has worked with every digraph combination except the British Pound
symbol.  "Compose $ $" just inputs a $. Is there some mapping I could place
in my .vimrc file that would generate the same output?

Thanks.

--
--
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/dc37eee0-48f0-4b50-81fd-079608f82a63n%40googlegroups.com.

Friday, March 17, 2023

[OT] vgrind or substitute for pretty printing on Ubuntu or Windows?

Sorry for an off-topic post.

Surprisingly, google search does not show the availability of vgrind for
Ubuntu. The replacement I currently use is https://www.lerup.com/printfile/

Would appreciate any suggestions for getting vgrind or another
substitute for pretty-printing on Ubuntu (20.04) or Windows.

--
--
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/c9b5c31d-d924-6528-3e19-b0318954ae63%40yahoo.com.

Thursday, March 16, 2023

Re: Beginner? How do I fix these error messeges

Are you trying to write out TODO.vim, or does it already exist on the interwebs? I asked this because it would be nice to read the code and see what is really going on here. Without this, here are a few tips
  • You can search the help for any error you see, :h 484 should tell you give you more information on the first error
  • First error looks like you're trying to load a file which doesn't exist. From the file path, looks like you have your home path scoped under Vim's runtime path. May wanna check that
  • 492 is an error when you call some function that doesn't exist. Note, if you define a function in a script with vim9script, you'd have to make that function global by defining it as def g:FuncName
Hopefully this helps

On Thu, Mar 16, 2023 at 5:17 PM Norman Bench <bmystic65@gmail.com> wrote:


On 3/16/23 07:09, Norman Bench wrote:
Line1

line3
using unix
--
--
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/jJfQWQjUtK0/unsubscribe.orman@norman-desktop:~/vim$ vim filelist
Error detected while processing /home/norman/.vimrc:
line    1:
E484: Can't open file /usr/local/share/vim/vim90/vimrc_example.vim/home/norman/.vim/vimrc
line    3:
E492: Not an editor command: $HOME/.vim/plugged/TODO.vim/plugin/TODO.vim
Press ENTER or type command to continue
Beginner user...anyway I don't know what i did,and don't know how to fix it?


Thank you!

Norman Bench

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/6c42d16c-598e-4bea-b6ba-b7ee2c750c2cn%40googlegroups.com.



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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/4f216849-9d7f-a7f8-e2f2-43f0db5475dc%40gmail.com.

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

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

Re: Beginner? How do I fix these error messeges


On 3/16/23 07:09, Norman Bench wrote:
Line1

line3
using unix
--
--
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/jJfQWQjUtK0/unsubscribe.orman@norman-desktop:~/vim$ vim filelist
Error detected while processing /home/norman/.vimrc:
line    1:
E484: Can't open file /usr/local/share/vim/vim90/vimrc_example.vim/home/norman/.vim/vimrc
line    3:
E492: Not an editor command: $HOME/.vim/plugged/TODO.vim/plugin/TODO.vim
Press ENTER or type command to continue
Beginner user...anyway I don't know what i did,and don't know how to fix it?


Thank you!

Norman Bench

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/6c42d16c-598e-4bea-b6ba-b7ee2c750c2cn%40googlegroups.com.



Re: Beginner? How do I fix these error messeges

Maybe share a screenshot?

On Thu, Mar 16, 2023 at 1:03 PM <arocker@vex.net> wrote:
> Line1
>
> line3
> using unix
>
What error messages? Is something missing from the posting?

--
--
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/e5ebd0c3ef9e2b9baf12d4b6ab266a4f.squirrel%40webmail.vybenetworks.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/CAOmRJrf9oWE3hAW3HJmg2cA9oXJYFPmpwBZ5AAZKd705qBNAjA%40mail.gmail.com.

Re: Beginner? How do I fix these error messeges

> Line1
>
> line3
> using unix
>
What error messages? Is something missing from the posting?

--
--
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/e5ebd0c3ef9e2b9baf12d4b6ab266a4f.squirrel%40webmail.vybenetworks.com.

Beginner? How do I fix these error messeges

Line1

line3
using unix

--
--
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/6c42d16c-598e-4bea-b6ba-b7ee2c750c2cn%40googlegroups.com.

Re: Cursor behavior in insert mode (soft wrap)

Same result here. Linebreak and wrapmargin=0 gives no hard breaks. Wrapmargin set to a nonzero value gives hard breaks.

But the original problem persists even with wrapmargin=0: The cursor behavior in insert mode is «strange» when moving to the next line.  The cursor moves to the next line while the last word stays on the previous line. If <space> is the next character i type, the last word on the previous line jumps to the next line.

torsdag 16. mars 2023 kl. 07:35:24 UTC+1 skrev Steve Martin:
So the question is what exactly do you want to happen? When I have linebreak and wrapmagin=0 I get no hard breaks.

On Wednesday, March 15, 2023 at 3:38:54 AM UTC-6 hcf wrote:
I might have been to fast on the trigger here. From :help linebreak it seems to me that wrapmargin turns on "hard wrap" and inserts eol-characters.

onsdag 15. mars 2023 kl. 09:40:37 UTC+1 skrev hcf:
I literally only had the three lines in my .vimrc. Setting wrapmargin to a non-zero value changed the cursor behavior. It now behaves as expected in insert mode. Thanks! But it also changed how vim reflows the visual display. With wrapmargin=0 vim will reflow my paragrahs fine when i delete words  in the begin of the paragraph. This is what I want to achieve.  With Wrapmargin set to a positive value, Vim will not reflow my visual display when I delete words early in a paragraph.
onsdag 15. mars 2023 kl. 07:45:45 UTC+1 skrev Steve Martin:
I'm not entirely certain this is a VIM issue. I cannot reproduce what you describe in my VIM.

However, first of all what do you have "wrapmargin" set to? Also, do you change "breakat" from the standard set of characters to break on?

On Tuesday, March 14, 2023 at 5:18:33 AM UTC-6 hcf wrote:

I'm trying to configure a desired behavior when soft-wraping text.

I only have three lines in my .vimrc

set nocompatible 
set wrap 
set linebreak


This work as I would expect, except from the moment when vim actually wraps text. When I write a word that takes me to the end of the line, the cursor jumps to the next line while the word stays on the previous line. If I then press ‹space›, the last word moves to the same line as the cursor. I would like the cursor to stay on the same line as the last word when typing.

Basically, I think I'm trying to acomplish what is standard word-wrap and insert in other editors/word processors.

Is there a way to accomplish this? Is this due to terminal settings?


(I have posted the same question here two months ago, but no answer yet)

Best regards
hcf

--
--
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/1cc7887d-09b0-4286-a0b3-497b31b48477n%40googlegroups.com.