Can I paste a string into buffer starting from line x?

Hi,

Can I somehow paste a string variable into a buffer starting from a specific line?
I just started reading up on how to handle buffers in code so this might be a stupid question.

i believe I found it nvim_buf_set_text

In vim parlance you can do :7norm p to paste on line 7

1 Like