Question

I have seen instructions about creating a "skeleton" file in vim. This involves creating the file, naming it "tmpl" plus the extension of the file type you are targeting (ex: tmpl.html), saving it to the "skeleton" directory, and then editing the vimrc file.

But, in MacVim, I don't see a "skeleton" directory anywhere. Googling, etc., has returned no helpful information.

Can someone point me to a helpful tutorial/white paper/whatever to walk me through this process for MacVim?

I am determined to develop some skills with Vim/MacVim!

Thanks

Was it helpful?

Solution

I feel dirty giving this as an answer (because I've never done it), but googlin' gave me this: Vim Recipes: Using Templates.

Seems like you make your own skeleton directory and point the line for your .vimrc file to it.

OTHER TIPS

There are a multitude of vim plugins that can handle this task. I use snipMate to perform tasks like this. You can define snippets for each file type or globally. The best part about the snippets is that you can keep hitting tab while it takes you to each "variable" within the snippet so that you can fill in the missing information quickly.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top