CARVIEW |
Select Language
HTTP/2 200
date: Wed, 23 Jul 2025 23:21:53 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
etag: W/"3a00d0779cb6b4dcbe07030db3416787"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=Zfz%2FkCIpCSKhRxdeSUZnaQ28dog0mMQetCToEFExQcq%2FA62PN0TjPOkRqMwl1E8rloaR95yiFujYvht4ZfFePp6NJuGUtPHvTu6B4lpoDutkLHnEWjX5I9BRYPChDyvqLh%2B%2F4vTSPPuRO1Uv5xVkH616ydhMDdezPCfwe4nKGhCkhnNKpjUuPIQoAEBUs8BdnQ7Eqf9KMNWsX8uy3xTQsTH7kqj6MlMlYQcyfOiF%2F7zohLqDLlpDWffqXUsbRGHD45wtTQa8YjMggQutbpL6Nw%3D%3D--DaZ3qa1H98tzIrO9--fSaJEfNT3tRK%2B29g6CrdTQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.554126782.1753312913; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 23:21:53 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 23:21:53 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: D06C:3F8A98:18202D:218104:68816E91
Command Specification · skywind3000/asyncrun.vim Wiki · GitHub
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 115
Command Specification
Linwei edited this page Nov 28, 2022
·
12 revisions
:AsyncRun[!] [options] {cmd} ...
Macro variables in the parameters and -cwd=
option will be expanded before executing:
$(VIM_FILEPATH) - File name of current buffer with full path
$(VIM_FILENAME) - File name of current buffer without path
$(VIM_FILEDIR) - Full path of current buffer without the file name
$(VIM_FILEEXT) - File extension of current buffer
$(VIM_FILENOEXT) - File name of current buffer without path and extension
$(VIM_PATHNOEXT) - Current file name with full path but without extension
$(VIM_CWD) - Current directory
$(VIM_RELDIR) - File path relativize to current directory
$(VIM_RELNAME) - File name relativize to current directory
$(VIM_ROOT) - Project root directory
$(VIM_CWORD) - Current word under cursor
$(VIM_CFILE) - Current filename under cursor
$(VIM_GUI) - Is running under gui ?
$(VIM_VERSION) - Value of v:version
$(VIM_COLUMNS) - How many columns in vim's screen
$(VIM_LINES) - How many lines in vim's screen
$(VIM_SVRNAME) - Value of v:servername for +clientserver usage
$(VIM_PRONAME) - Name of current project root directory
$(VIM_DIRNAME) - Name of current directory
Vim's filename modifiers are also accepted:
%:p - File name of current buffer with full path
%:t - File name of current buffer without path
%:p:h - File path of current buffer without file name
%:e - File extension of current buffer
%:t:r - File name of current buffer without path and extension
% - File name relativize to current directory
%:h:. - File path relativize to current directory
<cwd> - Current directory
<cword> - Current word under cursor
<cfile> - Current file name under cursor
But modifiers are not recommended, because it is evaluated before :AsyncRun
command starts, so if there is a -cwd=xxx
option, some modifiers may yield an out-dated result for the old working directory.
Option | Default Value | Description |
---|---|---|
-mode=? |
"async" | specify how to run the command as -mode=? , available modes are "async" (default), "bang" (with ! command) and "terminal" (in internal terminal), see running modes for details. |
-cwd=? |
unset |
initial directory (use current directory if unset), for example use -cwd=<root> to run commands in project root directory, or -cwd=$(VIM_FILEDIR) to run commands in current buffer's parent directory. |
-save=? |
0 | use -save=1 to save current file, -save=2 to save all modified files before executing. |
-program=? |
unset |
set to make to use &makeprg , grep to use &grepprt and wsl to execute commands in WSL (windows 10), see command modifiers. |
-post=? |
unset |
vimscript to exec after job finished, spaces must be escaped to '\ ' |
Option | Default Value | Description |
---|---|---|
-auto=? |
unset |
event name to trigger QuickFixCmdPre /QuickFixCmdPost [name] autocmd. |
-raw |
unset |
use raw output if provided, and &errorformat will be ignored. |
-strip |
unset |
remove the heading/trailing messages if provided (omit command and "[Finished in ...]" message). |
-errorformat=? |
unset |
errorformat for error matching, if it is unprovided, use current &errorformat value. Beware that % needs to be escaped into \% . |
-silent |
unset |
provide -silent to prevent open quickfix window (will override g:asyncrun_open temporarily) |
-scroll=? |
unset |
set to 0 to prevent quickfix auto-scrolling |
-once=? |
unset |
set to 1 to buffer output and flush when job is finished, useful when there are multi-line patterns in your errorformat
|
-encoding=? |
unset |
specify command encoding independently (overshadow g:asyncrun_encs ) |
Option | Default Value | Description |
---|---|---|
-pos=? |
"bottom" | When using internal terminal with -mode=term , -pos is used to specify where to split the terminal window, it can be one of "tab" , "TAB" , "curwin" , "top" , "bottom" , "left" , "right" and "external" . And you can customize new runners and pass runner's name to -pos option. |
-rows=num |
0 | When using a horizontal split terminal, this value represents the height of terminal window. |
-cols=num |
0 | When using a vertical split terminal, this value represents the width of terminal window. |
-focus=? |
1 | set to 0 to prevent focus changing when -mode=term
|
-reuse=? |
1 | set to 0 to prevent reusing previous terminal window |
-hidden=? |
unset |
set to 1 to init bufhidden to hide for terminal buffer and set to 0 to init bufhidden to delete
|
-listed |
1 | when using -mode=term , set to 0 to hide the terminal in the buffer list |
-close |
unset |
when using -mode=term , close the terminal automatically when terminal process is finished |
Option | Default Value | Description |
---|---|---|
-option=? |
empty |
arbitrary string can be used to pass additional information to the user-defined runner, eg. :AsyncRun -option=xxx ...
|
call asyncrun#run('<bang>', opts, command)
arguments:
-
'<bang>'
: either'!'
or an empty string''
. - opts: a dictionary of options, like
{'post': 'echo 123'}
- command: a string of shell command.
examples:
call asyncrun#run('', {}, 'echo "haha"')
call asyncrun#run('', {'mode':'terminal', 'pos':'TAB'}, 'ls -la')
The function form can be used to construct complex command.
Clone this wiki locally
You can’t perform that action at this time.