TechnologyText editor

Vim

Also known as: Vi IMproved

Free, highly configurable modal text editor created by Bram Moolenaar, descended from vi and available on nearly every Unix-like system.

Vim is a text editor known for modal editing: in normal mode, keys act as commands for moving, deleting, copying and changing text, while insert mode is used for typing. Commands combine like a small language, so an operator such as delete can be paired with a motion such as word or paragraph. This design lets experienced users edit quickly without leaving the keyboard. Vim runs in a terminal or with a graphical interface and is extensible through its own scripting language and a large ecosystem of plugins.

Bram Moolenaar released Vim in 1991, first for the Amiga, building on Stevie, a clone of the vi editor that Bill Joy wrote for Unix in 1976. The name originally stood for Vi IMitation and later Vi IMproved. Vim is charityware: its license is free and compatible with the GPL, and Moolenaar encouraged users to donate to a charity supporting children in Uganda. After Moolenaar's death in 2023, a group of longtime contributors took over maintenance. Neovim, a fork started in 2014, refactored the codebase and adopted Lua for configuration.

Vim or a compatible vi is present on almost every Unix-like system, so basic familiarity is a practical skill for anyone administering servers over SSH. Its keybindings are emulated in many other editors, including Visual Studio Code, and in browser extensions. Vim is one side of the long-running editor war with GNU Emacs, a humorous rivalry in hacker culture. The learning curve is steep, captured in jokes about how hard it is to quit the editor.

Key points

  • Vim uses modal editing, with keyboard commands that combine operators and motions.
  • Bram Moolenaar released Vim in 1991, building on a clone of the vi editor.
  • Neovim, a fork started in 2014, uses Lua for configuration.
  • Vim keybindings are emulated in many other editors.

Related entries

Technology

GNU Emacs

ProgrammingFOSS

Extensible, customizable free text editor started by Richard Stallman in 1984, built around an Emacs Lisp interpreter.

Technology

Free source-code editor from Microsoft, built on open-source foundations, with a large extension ecosystem and built-in Git and debugging support.

Glossary term

Command-Line Interface

ProgrammingFOSS

Text-based interface in which users interact with a computer by typing commands and reading text output rather than using graphical menus.

Technology

Lua

ProgrammingVideo Games

Lightweight, embeddable scripting language created in Brazil in 1993, widely used to script video games and extend applications.

Glossary term

Hacker Culture

Ideas and CultureCybersecurity

Subculture of people who enjoy exploring systems, solving technical problems creatively and sharing knowledge, rooted in early computing.

Glossary term

Fork (Software)

FOSSProgramming

Independent line of development created by copying a project's source code and evolving it separately from the original.

Technology

Bash

ProgrammingDevOpsFOSS

Unix shell and command language written for the GNU Project, long the default interactive shell and scripting language on Linux systems.

Technology

OpenSSH

CybersecurityDevOpsFOSS

Free suite of secure networking tools based on the Secure Shell protocol, developed by the OpenBSD project and used for encrypted remote login.