Detect vim directory instead of link