I have a function which calls another function that reads user input from
function! fun1() call fun2() endfunction function! fun2() let temp = input("Please input:") endfunction
What I want is when typing in the command area of vim with
Please input: xxx, if I press
fun1 will be stopped/ not executed.
How is it possible to do this?
Trying to catch the
<esc> key with:
try let temp = input("Input: ") " show what is already there catch "normal! <esc>" echo "esc catched" finally echo "\n".temp endtry
does not seems to work.