little bug with tmux runner
This commit is contained in:
parent
0bd8c18086
commit
9b09991599
@ -46,10 +46,11 @@ function GetCommandString(args, flavor, output)
|
||||
|
||||
if stridx(a:output, 'tmux') != -1
|
||||
let command = command.";"
|
||||
\ . "echo \"-----------------------------\" | lolcat;"
|
||||
\ . "echo \"(ENTER to close, C^c to stay)\";"
|
||||
\ . "read </dev/tty;"
|
||||
\ . "tmux detach-client -s".g:escapeTmuxSession.";"
|
||||
\ . " echo \"-----------------------------\" | lolcat;"
|
||||
\ . " echo \"(ENTER to close, C^c to stay)\";"
|
||||
\ . " read </dev/tty;"
|
||||
\ . " tmux detach-client" " omit final ';'
|
||||
echom command
|
||||
endif
|
||||
|
||||
if stridx(a:output, 'split-pane') == -1
|
||||
@ -61,7 +62,7 @@ endfunction
|
||||
|
||||
function GetPrefferredCommandOutput()
|
||||
for output in g:escapeCommandOutputs
|
||||
if stridx(output, 'tmux') && executable('tmux')
|
||||
if stridx(output, 'tmux') != -1 && executable('tmux')
|
||||
return output
|
||||
elseif stridx(output, 'split-pane') != -1 && v:version >= 800
|
||||
return output
|
||||
|
@ -57,8 +57,8 @@ nnoremap <Leader>rs q:oechom 'quickrepl' \| call ExecuteCommand('zsh -l', 'split
|
||||
" \t = run last quicktest
|
||||
" t)ype new quicktest
|
||||
" e)dit last quicktest
|
||||
nnoremap <Leader>t q:?^echom 'quicktest'<CR><CR>
|
||||
nnoremap <Leader>tt q:oechom 'quicktest' \| call SplitPaneTest('')<ESC>F'i
|
||||
nnoremap <Leader>t q:?^echom 'quicktest'<CR><CR><CR>
|
||||
nnoremap <Leader>tt q:oechom 'quicktest' \| call ExecuteCommand('')<ESC>F'i
|
||||
nnoremap <Leader>te q:?^echom 'quicktest'<CR>
|
||||
|
||||
" ./utility.vim
|
||||
|
Loading…
Reference in New Issue
Block a user