Tuesday, December 21, 2021

Re: vim9 Benchmark

Understood.
Thank you Bram.

Le mardi 21 décembre 2021 à 10:13:09 UTC+1, Bram Moolenaar a écrit :

> Do you know if the stats displayed in https://github.com/brammool/vim9 are
> updated ?

I have not touched them for a long time. I expect Vim9 might be a bit
slower now, with the extra checks for errors that were added.
I might spend some time on finding bottlenecks, but priority is still
with finishing the specification.

--
From "know your smileys":
;-0 Can't find shift key
,-9 Kann Umschalttaste nicht finden

/// Bram Moolenaar -- Br...@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/d51690fb-476d-4b81-98ae-97d4b23df6c1n%40googlegroups.com.

Re: vim9 Benchmark

> Do you know if the stats displayed in https://github.com/brammool/vim9 are
> updated ?

I have not touched them for a long time. I expect Vim9 might be a bit
slower now, with the extra checks for errors that were added.
I might spend some time on finding bottlenecks, but priority is still
with finishing the specification.

--
From "know your smileys":
;-0 Can't find shift key
,-9 Kann Umschalttaste nicht finden

/// 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/20211221091259.E39BB1C0F5C%40moolenaar.net.

Monday, December 20, 2021

vim9 Benchmark

Hi All,

Do you know if the stats displayed in https://github.com/brammool/vim9 are updated ?

Thank you
NiVa

--
--
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/5fe4cdfb-be68-413f-9dde-89f658215794n%40googlegroups.com.

Tuesday, December 14, 2021

Chain two job_start()?

Hi!

Is it possible to pass the results from one job to another?

Like, if i have to 'ls -la ~ | grep vim', and don't want to invoke shell with 'sh -c "exec ls -la ~ | grep vim"' -- then, I'd define jobs like this:

let com1 = ["ls", "-la", expand("~/")]
let com2 = ["grep", "vimrc"]

Can start the first one like this:

let job = job_start(com1, {"out_cb": "Handler", "err_cb" : "ErrHandler"})

And what's next? How do I connect the second job and how do I define Handler() in this case? :)


Thanks

--
RRR

--
--
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/d2160d9a-0f30-42ff-b18e-b6197090a4a1n%40googlegroups.com.

Tuesday, December 7, 2021

Learn more about our updated Terms of Service

rebbe.malachi.mailfeed@blogger.com

On January 5, 2022, we're making some changes to our Terms of Service. These changes won't affect the way you use Google services, but they'll make it easier for you to understand what to expect from Google — and what we expect from you — as you use our services.

You can review the new terms here. At a glance, here's what this update means for you:

  • More clarity on what you can expect from Google and what we expect from you: We're providing more examples to describe the mutually respectful conduct that we expect from all our users.
  • Revised warranty disclaimers and limitations of liability: We're including new warranty disclaimers and limitations of liability to reflect industry standards.
  • Increased clarity and certainty in case of problems or disagreements: We changed some of the language in the Taking action in case of problems and Settling disputes, governing law, and courts sections to make it clearer what would happen in those situations.
  • Improved readability: While our terms remain a legal document, we've done our best to make them easier to understand, including reorganizing some topics so that they're easier to find.

If you use Family Link to manage a Google Account for someone else, please take some time to talk to them about these changes.

Thank you for using Google!

Google LLC, 1600 Amphitheatre Parkway, Mountain View, CA, 94043

You have received this email to update you about important changes to Google's Terms of Service.

Monday, December 6, 2021

Re: how to disable autocmd and augroup from plugin / autoload

I have coded this instead to remove all autocommands of the group

    echomsg "EnhancedDiffLayout_autocmd disabled"

    augroup difflayout
      autocmd!
    augroup END


Le lundi 6 décembre 2021 à 13:36:41 UTC+1, Ni Va a écrit :
Hi,

I the plugin directory vim9script of a plugin of mine, i would like to toggle autocmd.

In plugin part, I got this augroup

foobar/plugin/foobar.vim
....

augroup difflayout
  au!
  autocmd CursorHold *.tmp call EnhancedDiffLayout()
augroup END

....

meanwhile in the following autoload part I got this to toggle autocmd.

foobar/autoload/foobar.vim
export def EnhancedDiffLayout_Toggle() #{{{

  g:EnhancedDiffLayout_Options.autocmd_enabled = !g:EnhancedDiffLayout_Options.autocmd_enabled

  if !g:EnhancedDiffLayout_Options.autocmd_enabled

    echomsg "EnhancedDiffLayout_autocmd disabled"
    autocmd! CursorHold *.tmp call EnhancedDiffLayout()
    augroup! difflayout

  else

    echomsg "EnhancedDiffLayout_autocmd enabled"
    augroup difflayout
      au!
      autocmd CursorHold *.tmp call EnhancedDiffLayout()
    augroup END

  endif
enddef #}}}


It seems at runtime that augroup cannot be deleted because autocmd! does not delete the autocmd. 

How can I fix it ?
Thank you
NiVa




--
--
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/685086c3-e097-4d76-a673-ba2ecf9b24d7n%40googlegroups.com.

how to disable autocmd and augroup from plugin / autoload

Hi,

I the plugin directory vim9script of a plugin of mine, i would like to toggle autocmd.

In plugin part, I got this augroup

foobar/plugin/foobar.vim
....

augroup difflayout
  au!
  autocmd CursorHold *.tmp call EnhancedDiffLayout()
augroup END

....

meanwhile in the following autoload part I got this to toggle autocmd.

foobar/autoload/foobar.vim
export def EnhancedDiffLayout_Toggle() #{{{

  g:EnhancedDiffLayout_Options.autocmd_enabled = !g:EnhancedDiffLayout_Options.autocmd_enabled

  if !g:EnhancedDiffLayout_Options.autocmd_enabled

    echomsg "EnhancedDiffLayout_autocmd disabled"
    autocmd! CursorHold *.tmp call EnhancedDiffLayout()
    augroup! difflayout

  else

    echomsg "EnhancedDiffLayout_autocmd enabled"
    augroup difflayout
      au!
      autocmd CursorHold *.tmp call EnhancedDiffLayout()
    augroup END

  endif
enddef #}}}


It seems at runtime that augroup cannot be deleted because autocmd! does not delete the autocmd. 

How can I fix it ?
Thank you
NiVa




--
--
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/1f80c947-970b-4cec-850e-c6c881d40107n%40googlegroups.com.