Re: Problem with vim.org mailing list aliases?

2023-08-13 Fir de Conversatie 'Dragan Simic' via vim_dev
On 2023-08-13 09:51, Christian Brabandt wrote: On Sa, 12 Aug 2023, Ben Fritz wrote: Hello everyone! Christian helpfully CC'd me on his email thread to the list about "The future of the Vim project". I replied by email a few hours ago with a lengthy post, but it still hasn't appeared on the web

Re: [vim/vim] Discuss - Integrate QuickJS in Vim to enable JavaScript and TypeScript ? (Discussion #12748)

2023-08-11 Fir de Conversatie 'Dragan Simic' via vim_dev
On 2023-08-11 20:57, Yee Cheng Chin wrote: One thing I need to point out is that WASM is not a replacement for vim9script / vimscript. Remember, the vast majority of people writing vimscript are just doing it in their vimrc, writing colorschemes, and whatnot. No one (ok, some of you will) will wr

Re: [vim/vim] Update the vimscript code for restoring cursor position (81b8bf5)

2023-08-10 Fir de Conversatie 'Dragan Simic' via vim_dev
On 2023-08-10 18:21, dkearns wrote: These multiline autocommands should probably use blocks now. See :help :autocmd-block Good point. I just made a note to revisit this vimcode and submit the changes as a pull request, after I set up everything on my side to be able to use GitHub. -- -- Yo

Re: [PATCH v2 1/2] Improve the vimscript code in ":h hex-editing"

2023-08-09 Fir de Conversatie 'Dragan Simic' via vim_dev
On 2023-08-10 07:14, 'Dragan Simic' via vim_dev wrote: On 2023-08-10 06:49, Christian Brabandt wrote: On Mi, 09 Aug 2023, 'Dragan Simic' via vim_dev wrote: Save and restore the view position before and after saving the buffer, respectively, to keep the current view of t

Re: [PATCH v2 1/2] Improve the vimscript code in ":h hex-editing"

2023-08-09 Fir de Conversatie 'Dragan Simic' via vim_dev
On 2023-08-10 06:49, Christian Brabandt wrote: On Mi, 09 Aug 2023, 'Dragan Simic' via vim_dev wrote: Save and restore the view position before and after saving the buffer, respectively, to keep the current view of the xxd(1)'s hex dump unchanged after doing ":w", wh

[PATCH v2 2/2] Update the vimscript code for restoring cursor position

2023-08-09 Fir de Conversatie 'Dragan Simic' via vim_dev
Using xxd(1) to filter and edit binary files causes the input files to have dual nature, so to speak, which effectively makes restoring the cursor position broken. Fix that by ignoring the "xxd" file type in the code that restores the cursor position. Interactive rebasing in git causes files to

[PATCH v2 1/2] Improve the vimscript code in ":h hex-editing"

2023-08-09 Fir de Conversatie 'Dragan Simic' via vim_dev
Save and restore the view position before and after saving the buffer, respectively, to keep the current view of the xxd(1)'s hex dump unchanged after doing ":w", which previously caused the window to scroll back to the very beginning of the buffer. I believe it's needless to say how annoying and

Re: [PATCH 2/2] Update the vimscript code in ":h restore-cursor"

2023-08-09 Fir de Conversatie 'Dragan Simic' via vim_dev
On 2023-08-09 16:04, Christian Brabandt wrote: On Mi, 09 Aug 2023, 'Dragan Simic' via vim_dev wrote: Ah, I think I know another file type that shouldn't have the cursor position restored. :) It's "gitrebase", which is, quite similarly to "gitcommit",

Re: [PATCH 2/2] Update the vimscript code in ":h restore-cursor"

2023-08-09 Fir de Conversatie 'Dragan Simic' via vim_dev
On 2023-08-09 10:46, 'Dragan Simic' via vim_dev wrote: On 2023-08-08 20:55, Christian Brabandt wrote: On Di, 08 Aug 2023, Dragan Simic wrote: On 2023-08-08 20:15, Christian Brabandt wrote: > On Di, 08 Aug 2023, 'Dragan Simic' via vim_dev wrote: > > > diff

Re: [PATCH 2/2] Update the vimscript code in ":h restore-cursor"

2023-08-09 Fir de Conversatie 'Dragan Simic' via vim_dev
On 2023-08-09 12:13, Christian Brabandt wrote: On Mi, 09 Aug 2023, 'Dragan Simic' via vim_dev wrote: Would you like me to extend the patch and resend it, to cover runtime/defaults.vim as well? Yes please. Do you mind to create this as a PR please if possible? Thanks, I'll

Re: [PATCH 2/2] Update the vimscript code in ":h restore-cursor"

2023-08-09 Fir de Conversatie 'Dragan Simic' via vim_dev
On 2023-08-08 20:55, Christian Brabandt wrote: On Di, 08 Aug 2023, Dragan Simic wrote: On 2023-08-08 20:15, Christian Brabandt wrote: > On Di, 08 Aug 2023, 'Dragan Simic' via vim_dev wrote: > > > diff --git a/runtime/doc/usr_05.txt b/runtime/doc/usr_05.txt > > index

Re: Patch patch 9.0.1679: Cleanup Tests from leftover files

2023-08-08 Fir de Conversatie 'Dragan Simic' via vim_dev
On 2023-08-09 07:18, Yegappan Lakshmanan wrote: Hi, On Tue, Aug 8, 2023 at 12:57 PM Christian Brabandt wrote: On Di, 08 Aug 2023, Christian Brabandt wrote: > patch 9.0.1679: Cleanup Tests from leftover files Sorry, trying to get the patch mails working. While this seems to fix the recent

Re: [vim/vim] I'm sad to hear the news. (Discussion #12737)

2023-08-08 Fir de Conversatie 'Dragan Simic' via vim_dev
May you rest peacefully, Bram. You started and continued doing a monumental thing for the humanity. No matter how sad this moment is, let it remind us that the good things we do in our lives are important. Human lives are extremely fragile, so let's do our best while we all are able to. --

Re: [PATCH 2/2] Update the vimscript code in ":h restore-cursor"

2023-08-08 Fir de Conversatie 'Dragan Simic' via vim_dev
On 2023-08-08 20:15, Christian Brabandt wrote: On Di, 08 Aug 2023, 'Dragan Simic' via vim_dev wrote: diff --git a/runtime/doc/usr_05.txt b/runtime/doc/usr_05.txt index bc68e61b8..acc0f0c6b 100644 --- a/runtime/doc/usr_05.txt +++ b/runtime/doc/usr_05.txt @@ -308,10 +308,14 @@ This s

[PATCH 1/2] Update the vimscript code in ":h hex-editing"

2023-08-08 Fir de Conversatie 'Dragan Simic' via vim_dev
This version saves and restores the view position while saving the buffer, to keep the current view unchanged after doing ":w", which previously caused the window to scroll back to the very beginning of the buffer. I believe it's needles to say how annoying and actually counterproductive that was

[PATCH 2/2] Update the vimscript code in ":h restore-cursor"

2023-08-08 Fir de Conversatie 'Dragan Simic' via vim_dev
Thanks to the input file's dual nature, so to speak, using xxd(1) to filter and edit binary files makes restoring the cursor position broken. Fix that by ignoring the appropriate file type in the code that restores the cursor position. While there, refactor the code a bit to save a few CPU cycle