]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vim/autoload/go/jump.vim
Move to vim9script
[dotfiles.git] / vim / .vim / autoload / go / jump.vim
diff --git a/vim/.vim/autoload/go/jump.vim b/vim/.vim/autoload/go/jump.vim
new file mode 100644 (file)
index 0000000..90c00d8
--- /dev/null
@@ -0,0 +1,9 @@
+vim9script
+
+export def Do(motion: string)
+    var saved = @/
+    mark '
+    execute motion
+    call histdel("/", -1)
+    @/ = saved
+enddef