I am writing a vim script, and I need to insert the contents of a string variable at the current cursor position. What is an appropriate way to do this?
let text = "Lorem ipsum sit dolor amet ..."
" How to insert text at current cursor position?
I know that :read
can do something like this, but it is only applicable for inserting text that come from files, not text stored in variables.