You might consider using a templating system similar to `yasnippet` to expand abbreviations.
https://github.com/joaotavora/yasnippet