If you are designing a command line tool and you want to use an interactive text editor as an advanced modal input, please don't use Vim. It's a fine text editor, but its UI is obfuscated to a point I can't stress enough. Throwing your users into Vim is absolutely unfriendly as it doesn't tell them how to use it, it doesn't even tell its name so users can't look up how to use that interactive prompt online. Please instead consider using Nano, it works better as an advanced prompt.