Re: Speeding up "sign unplace"

2019-01-28 Fir de Conversatie boss
Hello! On Sunday, 27 January 2019 21:27:47 UTC, yega...@gmail.com wrote: > > With the recent changes to the sign redrawing code, this problem should > have been addressed now. Can you try a latest Vim version and see whether > you still observe the lag in removing the signs? I updated Vim and t

Re: Speeding up "sign unplace"

2018-03-16 Fir de Conversatie boss
On Friday, 16 March 2018 13:06:16 UTC, Christian Brabandt wrote: > I would rather have a possibility to interact with signs using VimScript > API directly. I have posted a patch once here: > https://groups.google.com/d/msg/vim_dev/k_NktnNMCk8/yPGvY-E_S2MJ > > It's still available: > https://gith

Speeding up "sign unplace"

2018-03-16 Fir de Conversatie boss
Hello! When I want to remove most but not all of the signs from a buffer, I loop over a list of the signs' ids and execute `sign unplace id` for each one. However this can be quite slow and cause a noticeable lag in the UI. I don't know how to profile Vim itself (as opposed to Vimscript, which

Raw channel not receiving complete response intermittently

2017-10-25 Fir de Conversatie boss
Hello! I am using channels to talk to an HTTP server running on localhost: let channel = ch_open('localhost:1234', {'mode': 'raw'} let str = '...'" <- this is raw HTTP let response = ch_evalraw(channel, str) The HTTP response's body is a JSON string. I find intermittently (say 5

Re: How to run a job asynchronously?

2016-05-09 Fir de Conversatie boss
While a callback runs, does Vim block everything else? Or do callbacks run at the same time as other things are executed? In other words does Vimscript code with callbacks have to be thread-safe? -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply bel

Re: How to run a job asynchronously?

2016-05-05 Fir de Conversatie boss
On Thursday, 5 May 2016 10:25:19 UTC+1, Andrew Stewart wrote: > >> When I edit a file my job runs. When I trigger a second run, Vim > >> always crashes with a segfault: > >> > >> Vim: Caught deadly signal SEGV > >> Vim: Finished. > >> Segmentation fault: 11 I've just realised that every time a

Re: How to run a job asynchronously?

2016-05-04 Fir de Conversatie boss
On Sunday, 1 May 2016 21:37:13 UTC+1, Bram Moolenaar wrote: > Note that adding "DETACH" was removed, so you can drop this check. [snip] > A couple of problems have been fixed. Please give it another try and > report back if you still see a problem. [snip] > > I also implemented my job_start usin

Re: How to run a job asynchronously?

2016-04-28 Fir de Conversatie boss
On Wednesday, 27 April 2016 11:44:48 UTC+1, Andrew Stewart wrote: > I also implemented my job_start using an out_cb handler again instead of a > close_cb handler. The occasional-missing-callback problem has disappeared > and it all worked perfectly. Thanks! I know this isn't the place for Mac

How to run a job asynchronously?

2016-04-25 Fir de Conversatie boss
Hello! I have been trying to run a job asynchronously and capture the output, but despite reading the docs many times I can't get it to work. Ideally I want all the diff output in one go, rather than line by line, so I first tried using only an on_exit callback: let cmd = 'diff A B' le

Re: How to detect i_CTRL-X submode in Vimscript?

2016-04-22 Fir de Conversatie boss
I see this was fixed in Vim 7.4.1758. Thank you! -- -- 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 subscrib

Re: How to detect i_CTRL-X submode in Vimscript?

2016-04-21 Fir de Conversatie boss
> Why would a very short updatetime be useful? It seems like the better > solution is "don't do that", unless there's a good reason for it. In this case it's for updating diff signs. > The CursorHoldI event was already skipped when Insert completion is > active, thus if typing something after the

Re: How to detect i_CTRL-X submode in Vimscript?

2016-04-20 Fir de Conversatie boss
I've just realised I wrote CursorMovedI when I meant CursorHoldI. Sorry about that. > Would it be sufficient to not trigger CursorMovedI when the user pressed > CTRL-X ? What submode would it be in? Or are you saying that this > depends on whether the completion uses a popup menu or not? Yes,

How to detect i_CTRL-X submode in Vimscript?

2016-04-20 Fir de Conversatie boss
Hello! I posted this question a while back on vim_use but didn't receive any replies so I thought I would try here. https://groups.google.com/forum/#!topic/vim_use/EsISt5b-tnM/discussion I have a CursorMovedI autocommand which runs some Vimscript. Unfortunately if the user is in the CTRL-X su

Re: Patch 7.4.1274

2016-02-11 Fir de Conversatie boss
On Sunday, 7 February 2016 15:18:38 UTC, Bram Moolenaar wrote: > > Now that the basic channel and job support is there, I would like to > invite plugin writers to give feedback. We probably need some more > features and/or change how things work. Is it possible to read the job's stdout once it

Re: How to stop buffer number incrementing when writing to a temp file?

2015-04-01 Fir de Conversatie boss
> I started a thread on vim_dev... Oops, I mean vim_use. -- -- 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

How to stop buffer number incrementing when writing to a temp file?

2015-04-01 Fir de Conversatie boss
Hello! I have some VimL where I write the current buffer to a temporary file like this: let tmp = tempname() execute 'keepalt silent write' tmp I then use the temporary file in an external command invoked with system(). Finally I delete the temporary file: call delete(tmp) At no

Highlighting artefacts / glitches prompted by low updatetime

2014-06-12 Fir de Conversatie boss
Hello! I have a plugin which updates signs when a CursorHold auto-command fires (among other auto-commands). When `updatetime` is set to a low value, say anything under 100, and highlighting is in effect, I see highlighting glitches on many individual characters: specifically the foreground an

How to see exactly what system() command Vim executes?

2014-02-03 Fir de Conversatie boss
Hello! I've been researching how best to escape system() commands. So far, in order to find out what string Vim constructs and passes to the shell, I've been setting `verbose` to 4 and looking at the '"Calling shell to execute: "..."' output in `:messages`. However I'm beginning to wonder whet

How to find out when a VimL function was added?

2014-01-15 Fir de Conversatie boss
Hello! A user of one of my plugins recently reported this error: `E117: Unknown function: gettabvar`. He also told me the version of Vim he's using. How can I find out when gettabvar() – or any function in general – was added to VimL? Being able to find this out would help me decide whether o

Re: Sign column always present

2014-01-08 Fir de Conversatie boss
On Thursday, 22 August 2013 23:07:17 UTC+2, Bram Moolenaar wrote: > Christian Brabandt wrote: > > > > request:https://code.google.com/p/vim/issues/detail?id=117&q=Sign . > > Bram, > > > attached patch adds a 'signcolumn' option, that let's the user either > > always show the signcolumn (value=y