This is a whole block of instruction, they are numbered if you look at it. So basically:
Replace
MODULES=()
withMODULES=(vmd)
in the file/etc/mkinitcpio.conf
Also ~
character stand for your home folder, so I guess you made a typo when writing “Do you mean ~/etc/mkinitcpio.conf
” (note the out of place ~
character you put before the file path)