Does anyone have house or official rules for weapons that level and gain abilities as it increases?

For example you find a long sword +1, after using it awhile it becomes +2, then later it gains cure light wounds 1/day....