There might be a simple solution for this. I couldn't find any solution to it (I might be searching with wrong context)

Here is my requirement.

I wrote the below key mapping in vimrc. It should print the line "**Hello user\_name.**" n times, where **n** and **user\_name** are the user input once the key is pressed.

```
autocmd FileType ruby nnoremap <expr> <C-h>  :call FuncPrnt(<-syntax to pass input from user->)        

function! FuncPrnt(count, uname)
  let c=a:count
  let i=0
  while i<c
    call append(line("."), "Hello ".a:uname.".")
    let i+=1
  endwhile
endfunction

```

On Pressing the key user enters 3 and 'Ironman'. The output would be like

```
Hello Ironman.
Hello Ironman.
Hello Ironman.

```

Thanks in advance