Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
skywind3000 committed Mar 11, 2020
1 parent deb4111 commit 714ac9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ AsyncRun 可以用 `-mode=?` 参数指定运行模式,不指定的话,将会
:AsyncRun -mode=term -pos=curwin -hidden python "$(VIM_FILEPATH)"
```

当你用 split 窗口打开终端时 (`-pos``top`, `bottom`, `left``right` 的其中之一),AsyncRun 会先检查是否有之前已经运行结束的终端窗口,有的话会复用,没有的话,才会新建一个 split。
当你用内置终端时,AsyncRun 会先检查是否有之前已经运行结束的终端窗口,有的话会复用,没有的话,才会新建一个 split。可以使用 `-pos=TAB`,大写的 tab 表示在当前 tab 的左边打开内置终端 tab

如果这些运行模式还不能满足你,你可以 [自定义运行模式](https://github.com/skywind3000/asyncrun.vim/wiki/Customize-Runner)

Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,9 @@ Examples:
:AsyncRun -mode=term -pos=curwin -hidden python "$(VIM_FILEPATH)"
```

When using a split (`-pos` is one of `top`, `bottom`, `left` and `right`), AsyncRun will firstly reuse a finished previous terminal window if it exists, if not, AsyncRun will create a new terminal window in given position.
The `-pos` field accepts an uppercase `TAB`, to create tab on the left of current tab.

When using internal terminal, AsyncRun will firstly reuse a finished previous terminal window if it exists, if not, AsyncRun will create a new terminal window in given position.

### Terminal Name

Expand Down

0 comments on commit 714ac9b

Please sign in to comment.