I often need to insert the same text into a file.
My approach has been to put the text into my vimrc as a variable:
let map='<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd">'
And then insert it with Ctrl+r, =map Enter
This works but it somehow feels wrong. It also prevents me from entering long, multiline snippets. Is there a better way to do this?
Edit: I'm open to a solution that uses a plugin, but I'm using an older version of Vim that's missing python and a few other features. I'd prefer a simple solution.