Can you create a template in VIM with placeholders, and then it would cycle through the placeholders so you can fill in the content.
If the placeholder was used elsewhere, that would automatically get filled in since you already provided a definition for that placeholder.
example:
public class $CLASSNAME$
{
public $CLASSNAME$
{
}
}
There are plenty of snippets plugins for vim. You could try snipmate or snippetsemu for example.