vi 编辑器家族
Linux 用户调研显示,vi 编辑器家族是最受欢迎的文本编辑器之一。
vi 编辑器起源于 1977 年,尽管学习曲线陡峭,但一旦掌握,可以实现高效编辑。
它几乎无处不在,并且许多 IDE(如 VS Code、IntelliJ IDEA 和 Xcode)都支持 vi 快捷键绑定。
随着时间的推移,出现了众多 vi 的克隆版本和衍生品,例如 Elvis、xvi、Vile、Vim、nvi、OpenVi、neovim 以及 EVi 等,它们在功能和特性上有所不同。
其中,Vim 是最常用的 vi 克隆版本之一,而 Neovim 则专注于清理 Vim 并引入了 Lua 脚本支持和其他现代化功能。
一些项目如 Vim 和 Neovim 已经开始整合 LLM(大型语言模型)生成的代码。
查看原文开头(英文 · 仅前 3 段)
Polls of Linux users suggest that vi family editors are the most popular. The vi editor is a terminal-based text editor which dates back to 1977. If you’re wondering why so many people would choose to use a fifty year old text editor with a notoriously steep initial learning curve, it’s because once you learn it, you can be ruthlessly efficient with your editing. There’s also the benefit that it’s basically everywhere, so you don’t have to keep re-learning how to edit — most IDEs have vi key bindings as an option, including VS Code, IntelliJ IDEA, and XCode.The vi 2.0 release (1979) was a very large piece of software for the time, and in the 1980s it was only available to people with a commercial UNIX® license from AT&T. For this reason, multiple people created free clones of vi to run on 80s personal computers.There are now many vi clones and derivatives to choose from, and I couldn’t find a good comprehensive list of all of them with links, so here’s mine. Dates are release dates, to the best of my ability to track them down. Some of the projects are no doubt defunct, but it can be hard to tell as they can also go years between releases.I’m not going to list all the IDEs that have vi key bindings as an option, but other than that suggested additions are welcome.Original ex/vi (1977-2017?)https://github.com/n-t-roff/heirloom-ex-vi/The original 2.11BSD vi, upgraded to support UTF-8, with fixes for POSIX compliance.No major “quality of life” improvements, and it will fall over editing very large files.STevie (1987–1989)https://nosuch.com/tjt/STevie/A clone for the Atari ST and Amiga. If you don’t have an ST or Amiga you don’t want this. If you do have an ST or Amiga, you probably still don’t want this, as there are better options available to you. Vim (see below) descends from STevie.Elvis (1990–2024?)https://github.com/mbert/elvisOne of the earliest vi clones, built to run on MS-DOS, Minix, and other systems of the early 1990s.Elvis added improvements including multiple edit buffers, multiple windows, and syntax coloring. Unlike STevie, it used a file buffer for editing, so it could deal with files larger than available memory. It was used for the 80386 port of BSD Unix.xvi (1992–2017?)https://martinwguy.github.io/xvi/A STevie derivative which adds multiple windows and buffers. Probably the smallest vi clone.Vile (1991–)https://invisible-island.net/vile/Originally derived from Microemacs, given vi style editing, but with more modes. Adds infinite undo, UTF-8 support, syntax highlighting, and more.Vim (1991–)https://www.vim.orgProbably the most used vi clone. Derived from STevie. Adds windows, multiple buffers, assorted scripting options, and UTF-8 support. Handles very large files (GB in size).Now incorporating LLM-generated code.nvi (1994–)https://repo.or.cz/nvi.gitBased on Elvis, a reimplementation of vi intended to be identical in core behavior to the original. Used for the 4BSD Unix release.Adds support for additional scripting languages (Perl and Tcl). Introduced use of a database for storing file data. It’ll open files of about a GB in size but will complain about DB page sizes. Also unfortunately still doesn’t support UTF-8 text.OpenBSD vi / OpenVi (1994—)https://github.com/johnsonjh/OpenViA derivative of nvi. Extensively cleaned up, but still doesn’t support UTF-8 text. Also missing macros, scripting, syntax highlighting.BusyBox vi (2001–)https://busybox.netBusyBox includes a tiny incomplete (but usable) implementation of vi. You’ll encounter it in Alpine Linux and embedded systems.IllumOS vi (2005–)https://github.com/illumos/illumos-gate/tree/master/usr/src/cmd/viAT&T UNIX® vi from SVR4, open-sourced as part of OpenSolaris in 2005.nvi2 (2011–)https://github.com/lichray/nvi2Adds UTF-8 support to nvi, as well as various CJK encodings.neovim (2014–)https://neovim.ioCleans up Vim by removing support for ancient platforms. Adds LSP support, a built-in terminal emulator, Lua scripting to replace VimScript, and many other features.Now incorporating LLM-generated code.EVi (2026–)https://codeberg.org/evi-editor/eviA fork of Vim from before it began gaining LLM-generated code.Vim Classic (2026–)https://vim-classic.orgA fork of Vim from version 8.3 (pre LLM code), aiming for long term support by humans.ToyBox vi (2027?)https://codeberg.org/landley/toyboxToyBox, the non-GPL BusyBox clone, may be getting its own tiny vi implementation.Also, some things which aren’t really vi, but…Viper (1995–)https://www.gnu.org/software/emacs/manual/html_mono/viper.htmlA set of vi key bindings for Emacs.Kakoune (2012–)http://kakoune.orgA modal editor inspired by vi, but with slightly different key bindings. Designed to be minimal, calls external programs for some features.Evil (2013–)https://github.com/emacs-evil/evilAnother implementation of vi modal editing on top of Emacs.vis (2015–)https://github.com/martanne/visLike vi, but with structural regular expressions and other features taken from sam, the Plan 9 editor. (Sam is a graphical editor, so isn’t in this list.)Helix (2021–)https://github.com/helix-editor/helixAnother new modal editor, inspired by Kakoune and Vim. Again, key bindings are different.
※ 出于版权考虑,仅引用前 3 段。完整内容请阅读原文。