In a vimrc file I want to preload register C with a string I regularly need when coding. The string has a newline in it but no success in getting it to work properly.
Here is an example vimrc snippet of one of my attempts:
" Powershell block comment preload
let @c="<# Start COMMENT `n # End COMMENT #>"
in addition to '`n', I have tried `r`n, <CR>, maybe some others.
How do I represent a newline character in a 'let' statement string in vimrc, and have it work like a newline/CR when called upon to be inserted into the code (essentially inserted as a multi-line string)?
For that matter, in general, how do I represent any special character in a set/let statement string in a vimrc, and have it operate as intended when you ask for the value of that register?