Search notes:

vim script: setreg

call setreg(name, value)
call setreg(name, value, options)
Use setreg to set the value of a register. The optional third argument can be used to specify the type of the register.

See also

Vim: built in functions
VIM script

Index