Moved the vim function definitions to their own file