Christian Brabandt wrote:
> > > Can we make it work with vim commands? What comes to mind would be to
> > > have syntax highlighting work asynchronously, so Vim would stay
> > > responsive for languages that have known to be slow syntax highlighting.
> >
> > Hmm, that's something completely different. A simplistic version would
> > be to first redraw the screen in B&W, remembering what was put on the
> > screen, and then loop over those lines to add highlighting, bailing out
> > when a key is typed. Might actually work.
>
> This hasn't been done yet, correct?
Nope. It could be done like we call timers while waiting for a
character to be typed. But storing the state of what screen lines still
need to be colored, and making sure the coloring is interrupted by a
typed character, is still some work. And when it takes long it also
requires timers to be invoked...
> Also it would be neat, if we could e.g. in the background execute an
> ':Nread' command to download a file without blocking or uncompress an
> archive so something similar.
That can be done with a separate process. job_start() has an option to
put the output in a buffer. We already use external commands for
downloading and decompression, thus it should be a metter of writing the
script.
--
ARTHUR: Well, I AM king...
DENNIS: Oh king, eh, very nice. An' how'd you get that, eh? By exploitin'
the workers -- by 'angin' on to outdated imperialist dogma which
perpetuates the economic an' social differences in our society! If
there's ever going to be any progress--
The Quest for the Holy Grail (Monty Python)
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.