Let's say I have a mapping such as this:
nnoremap K :call MyFunction()
And my function is:
func MyFuction()
echom ("how to get the 10 passed to me?")
endfunc
Let's say the user presses 10K
on their keyboard. Is there a way for me to retrieve the number 10
from the MyFunction()
? The function is called similar to:
:.,.+9 call MyFunction()
:h v:count
or:h v:count1