]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vim/pack/stargrave/start/zshfe/autoload/zshfe.vim
Move to vim9script
[dotfiles.git] / vim / .vim / pack / stargrave / start / zshfe / autoload / zshfe.vim
diff --git a/vim/.vim/pack/stargrave/start/zshfe/autoload/zshfe.vim b/vim/.vim/pack/stargrave/start/zshfe/autoload/zshfe.vim
new file mode 100644 (file)
index 0000000..bb94dd6
--- /dev/null
@@ -0,0 +1,7 @@
+vim9script
+
+export def Do(query: string, opencmd: string)
+    silent var result = systemlist(g:zshfe_path .. " " .. query)
+    if len(result) == 0 | return | endif
+    execute opencmd .. " " .. result[0][: -2]
+enddef