freeCodeCamp/guide/english/vim/index.md

2.2 KiB

title
Vim

Vim

logo

Vim (Vi IMproved) is a highly configurable text editor built to make creating and changing any kind of text very efficient. It is included as "vi" with most UNIX systems, which also includes Apple's macOS. Vim is a major improvement over its predecessor vi, which was developed over 40 years ago, and it is still being used.

Vim is rock stable and boasts many features including:

  • persistent, multi-level undo tree
  • extensive plugin system
  • support for hundreds of programming languages and file formats
  • powerful search and replace
  • integrates with many tools
  • built-in macro support for automation text manipulation
  • usable on systems that lack support for GUI based text editors

One of the main differences that both Vim, and its predecessor vi, have over other editors like nano, is that it is a modal editor, which means that they have several modes of operation. For example, the editor starts in Navigation Mode, which allows you to quickly move around the document (or, more accurately blazingly fast). In this mode, you can enter commands to interact with your document, like using :i to enter insert mode, :q to quit, /<text> to search text, among others.

The modal part of Vim is what makes it really powerful. For an interactive tutorial, please visit OpenVim. Here you can try for yourself several of its more powerful features.

More information

For more information head to Vim's homepage

  • Vim.org is an online resource with downloadable binaries for most operating systems.
  • Open Vim is an online, interactive Vim tutorial you can do right in your browser.
  • Vim Adventures is an online game based on VIM's keyboard shortcuts. It's the "Zelda meets text editing" game.
  • Super necessary Vim shortcuts