function! RunCommand() call inputsave() let replacement = input('Enter Command: ') call inputrestore() execute 'call VimuxRunCommand("'.replacement.'")' endfunction nnoremap :call RunCommand() nnoremap :VimuxRunLastCommand