Re: Using Vim9 for a function

2023-01-20 Thread Bram Moolenaar
> On Fri, Jan 20, 2023 at 1:48 AM andalou wrote: > > > > > > I'm using vim 9.1221 on Windows 10. I tried to create a function using > > Vim9, as in: > > > > def! Foo(a: float, b: float): float > > return a + b > > enddef > > > > If I call Foo(1.2, 5.0) I get the answer 6.2 > > > > but if I cal

Re: Why does (my) Vim leave the cursor to the last mark even if I don't save the file?

2023-01-20 Thread Salman Halim
On Fri, Jan 20, 2023 at 11:01 AM Bram Moolenaar wrote: > > > I think what he is asking is for the " mark to only be written to the > > viminfo file for buffers that have been modified. I'm not sure how to > > do this or if it is even possible, but it seems like a perfectly > > reasonable behavio

Re: Using Vim9 for a function

2023-01-20 Thread Tony Mechelynck
On Fri, Jan 20, 2023 at 1:48 AM andalou wrote: > > > I'm using vim 9.1221 on Windows 10. I tried to create a function using > Vim9, as in: > > def! Foo(a: float, b: float): float > return a + b > enddef > > If I call Foo(1.2, 5.0) I get the answer 6.2 > > but if I call Foo(1.2, 5) I get: > > E10

Re: Why does (my) Vim leave the cursor to the last mark even if I don't save the file?

2023-01-20 Thread Tony Mechelynck
Ah, thanks Manfred. Tony. On Fri, Jan 20, 2023 at 10:30 AM Manfred Lotz wrote: > > > > On 1/20/23 08:38, Christian Brabandt wrote: > > > > On Do, 19 Jan 2023, Tony Mechelynck wrote: > > > >>> Es mag zu meinem Vorteil oder Nachteil ausfallen, ich fürchte nicht, > >>> so gesehen zu werden, wie ich

Re: Why does (my) Vim leave the cursor to the last mark even if I don't save the file?

2023-01-20 Thread Bram Moolenaar
> I think what he is asking is for the " mark to only be written to the > viminfo file for buffers that have been modified. I'm not sure how to > do this or if it is even possible, but it seems like a perfectly > reasonable behavior to want. > > Perhaps a VimLeavePre autocommand that wipes unmo

Re: [remove horizontal and vertical guidelines]

2023-01-20 Thread Maxim Abalenkov
Hello Chris et al., How are you? Thank you very much for your suggestions! I checked the value of the ‘term’ variable. It was set to ‘xterm-256color’ in both Konsole and Yakuake. Once I set it to ‘builtin_xterm’ the artefact lines disappeared! Thank you very much for your help! I don’t know wha

Re: Why does (my) Vim leave the cursor to the last mark even if I don't save the file?

2023-01-20 Thread Marvin Renich
* Christian Brabandt [230120 05:39]: > > On Fr, 20 Jan 2023, 'Ottavio Caruso' via vim_use wrote: > > > Am 19/01/2023 um 16:40 schrieb Christian Brabandt: > > > On Do, 19 Jan 2023, 'Ottavio Caruso' via vim_use wrote: > > > > $ cat .vim/vimrc > > > > source $VIMRUNTIME/defaults.vim > > > This is w

Re: Why does (my) Vim leave the cursor to the last mark even if I don't save the file?

2023-01-20 Thread Christian Brabandt
On Fr, 20 Jan 2023, 'Ottavio Caruso' via vim_use wrote: > Am 19/01/2023 um 16:40 schrieb Christian Brabandt: > > On Do, 19 Jan 2023, 'Ottavio Caruso' via vim_use wrote: > > > $ cat .vim/vimrc > > > source $VIMRUNTIME/defaults.vim > > This is where the auto command is defined. If you do not want

Re: Why does (my) Vim leave the cursor to the last mark even if I don't save the file?

2023-01-20 Thread Manfred Lotz
On 1/20/23 08:38, Christian Brabandt wrote: > > On Do, 19 Jan 2023, Tony Mechelynck wrote: > >>> Es mag zu meinem Vorteil oder Nachteil ausfallen, ich fürchte nicht, >>> so gesehen zu werden, wie ich bin. >>> -- Jean Jacques Rousseau (an Malesherbes, 1762) >>> >> @Christian: we