Merge pull request #113 from m42e/master

Predefined command option for VimuxPromptCommand
fix-tmux-next-3dot4
Ben Mills 10 years ago
commit c56e3f79e1

@ -117,10 +117,12 @@ uses the nearest pane or always creates a new one with g:VimuxUseNearest
VimuxPromptCommand~
Prompt for a command and run it in a small horizontal split bellow the current
pane.
pane. A parameter can be supplied to predefine a command or a part of the
command which can be edited in the prompt.
>
" Prompt for a command to run map
map <Leader>vp :VimuxPromptCommand<CR>
map <Leader>vm :VimuxPromptCommand("make ")<CR>
<
------------------------------------------------------------------------------

@ -11,7 +11,7 @@ command VimuxInspectRunner :call VimuxInspectRunner()
command VimuxScrollUpInspect :call VimuxScrollUpInspect()
command VimuxScrollDownInspect :call VimuxScrollDownInspect()
command VimuxInterruptRunner :call VimuxInterruptRunner()
command VimuxPromptCommand :call VimuxPromptCommand()
command -nargs=? VimuxPromptCommand :call VimuxPromptCommand(<args>)
command VimuxClearRunnerHistory :call VimuxClearRunnerHistory()
command VimuxTogglePane :call VimuxTogglePane()
@ -131,8 +131,8 @@ function! VimuxClearRunnerHistory()
endif
endfunction
function! VimuxPromptCommand()
let l:command = input(_VimuxOption("g:VimuxPromptString", "Command? "))
function! VimuxPromptCommand(command, ...)
let l:command = input(_VimuxOption("g:VimuxPromptString", "Command? "),a:command)
call VimuxRunCommand(l:command)
endfunction

Loading…
Cancel
Save