Monday, November 25, 2013

Re: improving Vim - Kickstarter - brainstorming - goals - who wants to join?


On Nov 26, 2013 6:14 AM, "Marc Weber" <marco-oweber@gmx.de> wrote:
>
> Excerpts from Nikolay Pavlov's message of Mon Nov 25 19:46:51 +0100 2013:
> > Do not know about mzscheme (racket), but if_py does not actually support
> > threading: it is cpython that supports it:
> The problem is that Vim does not expect called by Vim unless its VimL
> calling into Vim or such. Python does support passing CPU to multiple
> python threads.
> But if such thread wants to tell vim "hey, i'm ready", it cannot be done
> easily. You have to put the thread into "waiting/ready state", then you
> have to make Vim poll for that state. Otherwise Vim might crash.
> And that polling is hard to implement without delay. I know about on
> idel events and such, but then you might collide with other plugins.
> So whatever you do its a hack only.
>
> > And you still have not addressed another part: how will you spell things
> > like :?abc?,/def/s/a/b/i or :g/ghi/norm A$ with python considering it is
>
> Let's say it this way:
>   :%s/* are just "viml commands"
> Thus ":%s/" would no exist if you changed default interpreter.
> Eg let's assume you'd choose python as default, then you would have to:
>   :vim.eval('%....')
> or wirte a substitute function in python in global scope.

Function is going to be verbose. And what is the point in picking default interpreter if you have to use VimL in such a weird way?

Also note that you cannot use python re without joining buffer into one big string and then splitting. Guess the same with other interpreters.

> q: /: ?: already show how you can have multiple "mini buffers" for
> different tasks. So why not have a p: or a v: to get python/viml command
> lines ? (I know p is paste ..)

I already said that having command like :pyrepl may be handy: there even exist some plugins for this task. No need to take any keys for this though.

>
> Marc Weber
>
> --
> --
> 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.
> For more options, visit https://groups.google.com/groups/opt_out.

--
--
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.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment