如何在Go的Terminal的一部分中使用Vim

I'm trying to create TUI app with Go.
I'll make this app like dashboard.
And I want to use Vim as a part of Terminal(iTerm2) screen.

1

And I want to use local vim env(NeoVim, Local vimrc and plugins).

How do I use local vim with go?
Or are there go libraries to use local vim?

My English isn't so good so feel free to ask me if there is anything unclear.
Thank you.

What you're trying to do is inordinately difficult to do, and I would advise against it.

The only way to embed a terminal application like you're describing is to essentially implement a terminal emulator within your application and display its output within your application. There are libraries which can make this easier -- like libvterm, which vim uses to implement the :terminal command -- but even so, doing this will be difficult, particularly if you want to support advanced terminal functionality in the embedded editor (like mouse support).

A more common idiom for making an editor available in a terminal application is to launch the editor as a subprocess on demand, allowing it to "take over" the entire terminal while a file is being edited. Once the editor exits, your application can resume.