Tweaked edit with path behaviour and messages to match vim