Skip to content

Commit b18c580

Browse files
author
skywind3000
committed
update doc
1 parent cd36f5a commit b18c580

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README-cn.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161

162162
| 参数 | 默认值 | 含义 |
163163
|-|-|-|
164-
| `-mode=?` | "async" |`-mode=?` 的形式指定运行模式可选模式有: `"async"` (默认模式,后台运行输出到 quickfix), `"terminal"` (在内建终端运行), `"bang"` (使用 `!` 命令运行) and `"os"` (新的外部终端窗口),具体查看 [运行模式](#运行模式)|
164+
| `-mode=?` | "async" |`-mode=?` 的形式指定运行模式可选模式有: `"async"` (默认模式,后台运行输出到 quickfix), `"bang"` (使用 `!` 命令运行) 以及 `"terminal"` (在内建终端运行), 具体查看 [运行模式](#运行模式)|
165165
| `-cwd=?` | `未设置` | 命令初始目录(没有设置就用 vim 当前目录),比如 `-cwd=<root>` 就能在 [项目根目录](#项目根目录) 运行命令,或者 `-cwd=$(VIM_FILEDIR)` 就能在当前文件所在目录运行命令。 |
166166
| `-save=?` | 0 | 运行命令前是否保存文件,`-save=1` 保存当前文件,`-save=2` 保存所有修改过的文件 |
167167
| `-program=?` | `未设置` | 设置成 `make` 可以用 `&makeprg`,设置成 `grep` 可以使用 `&grepprt`,而设置成 `wsl` 则可以在 WSL 中运行命令 (需要 Windows 10)|
@@ -257,7 +257,6 @@ AsyncRun 可以用 `-mode=?` 参数指定运行模式,不指定的话,将会
257257
| async | 默认模式,在后台运行命令,并将输出实时显示到 quickfix 窗口。 |
258258
| bang | 用 Vim 传统的 `:!` 命令执行。 |
259259
| term | 使用一个可复用的内部终端执行命令。 |
260-
| os | 目前只支持 Windows,打开一个新的 cmd.exe 窗口执行命令。|
261260

262261
更多信息,见 [这里](https://github.com/skywind3000/asyncrun.vim/wiki/Specify-how-to-run-your-command).
263262

@@ -277,6 +276,7 @@ AsyncRun 可以用 `-mode=?` 参数指定运行模式,不指定的话,将会
277276
- `-pos=bottom`: 在下方打开终端。
278277
- `-pos=left`: 在左边打开终端。
279278
- `-pos=right`: 在右边打开终端。
279+
- `-pos=external': 使用外部终端(仅支持 windows)。
280280

281281
例子:
282282

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ There can be some options before your `[cmd]`:
161161

162162
| Option | Default Value | Description |
163163
|-|-|-|
164-
| `-mode=?` | "async" | specify how to run the command as `-mode=?`, available modes are `"async"` (default), `"terminal"` (in internal terminal), `"bang"` (with `!` command) and `"os"` (in external os terminal), see [running modes](#running-modes) for details. |
164+
| `-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](#running-modes) for details. |
165165
| `-cwd=?` | `unset` | initial directory (use current directory if unset), for example use `-cwd=<root>` to run commands in [project root directory](#project-root), or `-cwd=$(VIM_FILEDIR)` to run commands in current buffer's parent directory. |
166166
| `-save=?` | 0 | use `-save=1` to save current file, `-save=2` to save all modified files before executing. |
167167
| `-program=?` | `unset` | set to `make` to use `&makeprg`, `grep` to use `&grepprt` and `wsl` to execute commands in WSL (windows 10) |
@@ -258,7 +258,6 @@ The default behavior is to run async command and output to quickfix window. Howe
258258
| async | default behavior, run async command and output to quickfix window |
259259
| bang | same as `!` |
260260
| term | open a reusable internal terminal window and run your command |
261-
| os | (windows only) open a new cmd.exe window and run your command in it |
262261

263262
For more information, please see [here](https://github.com/skywind3000/asyncrun.vim/wiki/Specify-how-to-run-your-command).
264263

@@ -272,6 +271,7 @@ AsyncRun is capable to run commands in Vim/NeoVim's internal terminal with the `
272271
- `-pos=bottom`: open the terminal below the current window.
273272
- `-pos=left`: open the terminal on the left side.
274273
- `-pos=right`: open the terminal on the right side.
274+
- `-pos=external`: use an external terminal (windows only).
275275

276276
Examples:
277277

0 commit comments

Comments
 (0)