Conditional logic for setting the vim