-- misc stuff implemented in lua local M = {} function M.open_under_cursor(cmd) local txt = vim.fn.expand('') local txt = vim.fn.expand(txt) if not cmd then vim.fn.inputsave() cmd = vim.fn.input('open with: ') vim.fn.inputrestore() end if cmd then c = vim.loop.spawn(cmd, { args = {txt} }, function() c:close() end) end end return M