Skip to content

Commit c4eccfc

Browse files
committed
Merge pull request #49 from jtmkrueger/master
Allow for Customization of prompt string
2 parents d6eb9e5 + dd1c213 commit c4eccfc

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

doc/vimux.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,17 @@ The keys sent to the runner pane before running a command. By default it sends
291291

292292
Default: "q C-u"
293293

294+
------------------------------------------------------------------------------
295+
*VimuxPromptString*
296+
2.5 g:VimuxPromptString~
297+
298+
The string presented in the vim command line when Vimux is invoked. Be sure
299+
to put a space at the end of the string to allow for distinction between
300+
the prompt and your input.
301+
302+
let g:VimuxPromptString = ""
303+
304+
Default: "Command? "
294305

295306
==============================================================================
296307
vim:tw=78:ts=2:sw=2:expandtab:ft=help:norl:

plugin/vimux.vim

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,11 @@ endfunction
154154

155155

156156
function VimuxPromptCommand()
157-
let l:command = input("Command? ")
157+
if exists("g:VimuxPromptString")
158+
let l:command = input(g:VimuxPromptString)
159+
elseif
160+
let l:command = input("Command? ")
161+
endif
158162
call VimuxRunCommand(l:command)
159163
endfunction
160164

0 commit comments

Comments
 (0)