Skip to content

Commit 14272f0

Browse files
author
skywind3000
committed
new runner: tmux, try with :AsyncRun -mode=term -pos=tmux ls -la
1 parent 2adae92 commit 14272f0

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

autoload/asyncrun/runner/tmux.vim

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
"======================================================================
2+
"
3+
" tmux.vim -
4+
"
5+
" Created by skywind on 2021/12/15
6+
" Last Modified: 2021/12/15 06:52:27
7+
"
8+
"======================================================================
9+
10+
" vim: set ts=4 sw=4 tw=78 noet :
11+
12+
function! asyncrun#runner#tmux#run(opts)
13+
if exists('*VimuxRunCommand') == 0
14+
return asyncrun#utils#errmsg('require benmills/vimux')
15+
endif
16+
let cwd = getcwd()
17+
call VimuxRunCommand('cd ' . shellescape(cwd) . '; ' . a:opts.cmd)
18+
endfunc
19+
20+

0 commit comments

Comments
 (0)