call append(line('.'), ['your name: '])normal j$a
25.6. How do I start insert mode from a Vim function?You can use the ":startinsert" command to start the insert mode from insidea Vim function.For more information, read:help :startinsert