How do you assign text to a register using :let?
Answer
:let @a = 'hello world'
Explanation
Use :let @a = 'text' to set register a to any string. Supports escape sequences and expressions. Useful for scripting.
:let @a = 'hello world'
Use :let @a = 'text' to set register a to any string. Supports escape sequences and expressions. Useful for scripting.