Snip is a vim plugin for creating and managing vim abbreviations.
Your preferred plugin manager, e.g with Vim-Plug:
Plug "quintik/Snip"
Create a /snip directory in the same directory as $MYVIMRC, create a
<filetype>.snip file within the snip directory and you can start adding snips
to the file. For example, inside snip/java.snip:
# main #
snip psvm {
public static void main()<Left>
}
Then, inside a java file, type 0psvm and it will be expanded once you press
space.
See :h snip for a more thorough introduction.