Refactor bash and vim settings