File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -117,10 +117,12 @@ uses the nearest pane or always creates a new one with g:VimuxUseNearest
117
117
VimuxPromptCommand~
118
118
119
119
Prompt for a command and run it in a small horizontal split bellow the current
120
- pane.
120
+ pane. A parameter can be supplied to predefine a command or a part of the
121
+ command which can be edited in the prompt.
121
122
>
122
123
" Prompt for a command to run map
123
124
map <Leader>vp :VimuxPromptCommand<CR>
125
+ map <Leader>vm :VimuxPromptCommand("make ")<CR>
124
126
<
125
127
126
128
------------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ command VimuxInspectRunner :call VimuxInspectRunner()
11
11
command VimuxScrollUpInspect :call VimuxScrollUpInspect ()
12
12
command VimuxScrollDownInspect :call VimuxScrollDownInspect ()
13
13
command VimuxInterruptRunner :call VimuxInterruptRunner ()
14
- command VimuxPromptCommand :call VimuxPromptCommand ()
14
+ command - nargs =? VimuxPromptCommand :call VimuxPromptCommand (<args> )
15
15
command VimuxClearRunnerHistory :call VimuxClearRunnerHistory ()
16
16
command VimuxTogglePane :call VimuxTogglePane ()
17
17
@@ -131,8 +131,8 @@ function! VimuxClearRunnerHistory()
131
131
endif
132
132
endfunction
133
133
134
- function ! VimuxPromptCommand ()
135
- let l: command = input (_VimuxOption (" g:VimuxPromptString" , " Command? " ))
134
+ function ! VimuxPromptCommand (command , ... )
135
+ let l: command = input (_VimuxOption (" g:VimuxPromptString" , " Command? " ), a: command )
136
136
call VimuxRunCommand (l: command )
137
137
endfunction
138
138
You can’t perform that action at this time.
0 commit comments