I want to be able to insert something from the buffer (possibly using "p"), but instead of pasting it into the text, I want to replace everything that was before. (Just like the "R" command), I searched Google, the vim and Stack Overflow documentation, but couldn't find anything on this. I guess this is just a team that I don't know about. Any help would be appreciated.
This is all I need to know, but if you want to know my specific problem:
Essentially, I'm just trying to create a short script for the documentation headers. At the beginning of each function, I add the following:
// FunctionName <> <> <> <<<>>>>> <<<> <> <> <> <> <> <> <> <>
However, adding all of these "<>" is annoying. I want so that I can put my cursor on the function name, press the F6 key and will produce the above. The problem, of course, is that function names are not constant sizes, and this will make the chain weird. So I just want to insert a BIG bunch of pre-made chains so that all this is always a constant number of characters. i.e:.
start with
//<><><><><><><><><><><><><><><><><><><><><><><><><><><>
Insert "FunctionName" and terminate with
// FunctionName <><><><><><><><><><><><><><><><><><><><>
Thanks everyone
~ massager
source share