The commands in a Vimscript file are executed in command mode by default. Therefore all non-command mode directives should be prefixed.
command mode