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