update watchdog to support vim & other text-editor