Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [async]

The tag has no usage guidance.

1
vote
1answer
44 views

How to pass a string as stdin to a job?

I have a shell command which reads from stdin, processes the input, and writes to stdout. To call it synchronously from vim I can do system('mycommand', data) where data is some string my vimscript ...
0
votes
0answers
17 views

Running a command after makeprg successfully runs

I have a workflow where I build on one machine and copy the result to a different machine for testing. Currently I use vim-dispatch for running make in the background. What I would like to be able to ...
2
votes
1answer
204 views

Can't echo messages from inside async functions

CASE 1: Have your autocmd command be setup like this: autocmd User ALELintPost call SayHello() " ALELintPost is async And your SayHello function set up like this function! SayHello() abort ...
2
votes
1answer
115 views

How to use “FocusGained” to stop my cursor from moving

I tend to use GVim a lot. Very frequently, I'll click on some other window and then when I click on vim to regain focus, my cursor will end up in some random location depending on where I clicked. I ...
2
votes
1answer
210 views

How to build nvim to has_perl?

I am on macOS. My ultimate goal is to speed up dbext.vim and I found the page mentioned DBI which depends on has('perl'). So I'd like to know how to build Neovim to have Perl enabled... Now I am ...
2
votes
1answer
603 views

How to get git branch information supplied by vim-fugitive asynchronously for my statusline?

I can directly use the following approach to get the git branch information: ... let l:git = "%6*%{exists('g:loaded_fugitive')?fugitive#statusline():''}%*" ... If so, it can cause a delay to the ...
0
votes
2answers
109 views

How to execute global/substitution command asynchronously?

With the release of vim 8, I was wondering if there is a way to execute :s or :g asynchronously.
3
votes
0answers
54 views

Is there an ideal / idiomatic way to debug running plugins?

I sometimes have plugs stop working — in my case, mostly using async lookups with Unite. When this happens, I would like to see what is happening and look into how to configure around it, or make a ...
1
vote
1answer
53 views

async_job patch in Kaoryia's gVim (windows)

Kaoryia's gVim builds for Win32/64 come with a number of extra, non-official patches enabled. Some of them are pretty clear: :set charspace=-1, for example, will tighten the space between characters;...