1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-12 17:55:41 +08:00

feat(dev): add :Vim command

This commit is contained in:
wsdjeg 2023-06-27 08:23:02 +08:00
parent 39f301c995
commit b7049deea0

View File

@ -6,3 +6,12 @@ vim.api.nvim_create_user_command('Nvim', function(opt)
vim.fn.jobstart(cmd)
end, { nargs = '*', complete = 'file' })
vim.api.nvim_create_user_command('Vim', function(opt)
local cmd = { 'gvim', }
for _, v in pairs(opt.fargs) do
table.insert(cmd, v)
end
vim.fn.jobstart(cmd)
end, { nargs = '*', complete = 'file' })