Vim cc file template
Is it possiable to get vim to automatically write certain things in new files, like a new header and footer. Stuff that would be inspecific to the type of file (main program, header, etc.) or even the file's eventual code type (c, c++, ruby, python, etc.). For example
Quote:
|
Put the following in your .vimrc:
Code:
au BufNewFile *.c 0read ~/.template.c Moy (Edited to remove BufRead.) |
Thanks for the reply Moy Easwaran. I will look up the given information, and report back if I have questions. Again, thank you.
|
At the risk of seeming self-serving, I've got a little page on my website about just such things, a little more general than Moy's good advice:
http://www.metasyntax.net/index.php?...ge=boilerplate |
Thanks for the link taylor. I read through your site, pretty nice, better than mine... anyway. I cannot find anything on boilerplates, though I did find a lot of references to skeleton templates. I haven't actually tried to use any of them right yet as I'm in the middle of several good sized assignment for my C++ class. The last thing I need to do is screw up vim.
|
All times are GMT -5. The time now is 08:48 PM. |