ViAI (pronounced "vee-eye") is a fork of Vim, being developed by Hirohito Higashi (h-east), a former Vim maintainer.
ViAI has no generative AI built in. What it offers is checking a Vim9 script for errors before running it.
ViAI is a text editor that comes with these plugins and aims to make them work well:
ViAI is the only editor that can show the errors that Vim gives when sourcing a Vim9 script as diagnostics, without running the script.
Your Vim configuration and plugins work in ViAI as they are.
The name stands for "Vim Advanced Integrated". It happens to be the same words as the "AI synthesis" (Advanced Integrated) of the KORG M1 synthesizer, released in 1988, the year in which Bram Moolenaar started writing Vim.
- The two plugins above are optional packages, see
:help package-lsp.vim.
So is viai.mcp, a server of the Model Context Protocol, see:help package-viai.mcp. - ViAI adds features of its own, while keeping compatibility with Vim as far as possible.
- The patches of Vim are imported into ViAI as a rule. The ones that are
not imported are listed in
tools/vim-patch-not-imported.txt.
- AI tools may propose a specification, but humans work it out and decide on it.
- Code generated by AI tools is always reviewed by a human, for both its specification and its implementation, before it is committed.
The maintainer is responsible for all changes in ViAI, however they were written.
- A bug that occurs only in ViAI: please open an issue in this repository to report it. The maintainer fixes it in ViAI with a pull request.
- A bug that also occurs in Vim: please open an issue in this repository to report it. The maintainer fixes it in ViAI and reports it to Vim. When Vim fixes it later, ViAI takes the fix of Vim.
- A bug that occurs only in Vim: please open an issue in the Vim repository to report it.
- The programs are named
viai,gviai,viaidiff, etc., and the runtime files are installed in their own directory, so that ViAI can be installed next to Vim.ex,view,xxdandvimtutorare not installed. - ViAI has its own version number, starting at 1.0.
v:versionandhas('patch-...')still report the Vim version. Usehas('viai')to check for ViAI. - ViAI uses your Vim configuration, unless its own configuration exists:
~/.viairc,~/.viai/or$XDG_CONFIG_HOME/viai/($HOME/_viaircor$HOME/viaifiles/on MS-Windows). - The viminfo file is
~/.viaiinfo. The first time, the history and marks of~/.viminfoare taken over.
See :help viai (runtime/doc/viai.txt) for all
the differences.
ViAI is built like Vim. All the stuff for compiling is in the
src directory, see src/INSTALL for Unix and
src/INSTALLpc.txt for MS-Windows. On Unix:
./configure
make
make install
Use :help in ViAI, or read
runtime/doc/help.txt.
The help is also available online in HTML:
Bug reports and feature requests are welcome. Please open an issue in this repository. Pull requests from others are generally not accepted, see the CONTRIBUTING.md file.
Changes made in ViAI after the initial import are licensed under the Apache
License 2.0, see LICENSE-APACHE.
Code imported from Vim is licensed under the Vim license, see
LICENSE. This applies to the initial import commit and to
every commit whose subject starts with vim-patch:.
Vim is Charityware: its users are encouraged to make a donation to help
children in Uganda. See runtime/doc/uganda.txt
(:help uganda).
Most of Vim was created by Bram Moolenaar. Many thanks to him and to everyone who has contributed to Vim.
ViAI is maintained by Hirohito Higashi (@h-east).
If you find ViAI useful, you can sponsor its maintainer, Hirohito Higashi, on GitHub Sponsors. This money does not go to the children in Uganda; to help them, see the License section above.