replacements with subscript formating?

Hi,

In my field, we use subscripts alot. Nice to look at, a hassle to insert all the time. Is there a way to get f0 to be transformed into f[sub]0[/sub] at comile time? It would save me a lot of work.

Thank you!