I am using vim for both programming and competitive coding. Now, since I want to insert specific macros whenever I open a source file when I am doing competitive coding. I just copy paste the entire macros into the vim editor manually from the place where I saved them.   Is there any way I can do this more efficiently in vim editor, like say I press CCand the macros get inserted at the top of the source file automatically ?   If yes, then what changes do I need into the .vimrc file to do so ? 
How to insert specific lines into a file using vim?
vim;vi;clipboard
There are various solutions to this explained in an existing post:https://stackoverflow.com/questions/690386/writing-a-vim-function-to-insert-a-block-of-static-text