inject file in custom commands

To provide better flexibility and integration of other vim functions
within the commands.