vim9script export def Do(motion: string) var saved = @/ mark ' execute motion call histdel("/", -1) @/ = saved enddef