add conditional to reattach namespace if prog exists for vim