Log in Sign up
Back to Discover
💻

Vim (text editor)

technology Maturity 9-11 war conflict
This article covers sensitive topics: war_conflict. Parents can manage visibility in Parental Controls.

Vim is a tool for writing.

Vim modes.svg
Vim modes.svg
It helps people write code. It works on many computers. You can use it to make things. It is very good for work. Do you like to write on a computer?

39 words

Vim is a tool for writing.

Vim modes.svg
Vim modes.svg
It helps people write code. It works on many computers.

Bram Moolenaar started making it in 1988. It was first shared with the world in 1991.

People use it to do many jobs. Some people use it to make software. It is very popular for this work.

Users can change how it looks. You can add new parts to it. This helps it work the way you want.

It can even help if a computer stops working. It saves your work in a special file. This helps you get your writing back.

Gvim-7.3-menu.png
Gvim-7.3-menu.png

101 words

Vim is a tool for writing text. It is a text editor.

Vim modes.svg
Vim modes.svg
Many people use it to write computer code. It is free for anyone to use.

Bram Moolenaar began making Vim in 1988. He used an older tool called Stevie to help him. The first public version came out in 1991. The name Vim means "Vi Improved." This is because it does more than the old tool it was based on.

Vim works in different ways. You can use it in a terminal. A terminal is a text-only screen. You can also use gVim. This is a graphical version. It has menus, icons, and toolbars.

Gvim-7.3-menu.png
Gvim-7.3-menu.png

One special thing about Vim is its modes. A mode is a way the tool acts. In Normal mode, you use keys to give commands. In Insert mode, you type text like a regular editor. There are 14 modes in total.

You can also change Vim to fit your needs. You can add plugins. These are extra parts that add new skills. You can even use a language called Vim script to make it do complex tasks. This makes Vim very useful for many different jobs.

195 words

Vim is a free tool used for writing text. It is a text editor that many people use to write computer code. People like it because it is very flexible and can be changed to fit their needs.

Vim modes.svg
Vim modes.svg
You can use it in a simple text screen called a terminal. You can also use a version called gVim. This version has a graphical user interface with menus, toolbars, and icons.
Gvim-7.3-menu.png
Gvim-7.3-menu.png
It is a very popular choice for people who develop software.

Vim works using different modes to change how the keyboard acts. In Normal mode, keys are used to give commands to the editor. In Insert mode, you type text just like a modern word processor. There is also a Visual mode used for selecting areas of text. Some versions of Visual mode let you select whole lines or rectangular blocks.

Vim modes.svg
Vim modes.svg
The Command-line mode lets you type specific instructions at the bottom of the screen. This way of working helps users keep their fingers on the home row of the keyboard.

Bram Moolenaar began working on Vim in 1988. He used a codebase from an editor called Stevie to start his project. The first public release of version 1.14 happened on November 2, 1991. It was shared with the public through a Fish Disk in January 1992. The name Vim originally stood for "Vi Imitation." Later, the name was changed to "Vi Improved" because it did much more than the original tool.

Gvim-7.3-menu.png
Gvim-7.3-menu.png

Vim has many different versions that have added new features over time. Version 2.0 was released on December 14, 1993. Version 4.0 added the graphical user interface in 1996. By version 7.0, it had features like spell checking and tab pages. In 2015, a survey found it was the third most popular text editor. In 2018, Linux Journal readers voted it the most popular editor. It has been ported to many systems like Windows, Linux, and macOS.

Gvim-7.3-menu.png
Gvim-7.3-menu.png

You can make Vim do almost anything by using plugins or scripts. Plugins are extra parts that add new skills to the editor. Most plugins are written in a language called Vim script. You can also use other languages like Python, Ruby, or Lua. Vim also uses special memory entries called registers to store text. These registers help when you are cutting, copying, or pasting text.

Vim modes.svg
Vim modes.svg
This makes Vim a tool that grows with the person using it.

406 words

Vim is a free and open-source text editor used globally for writing code and text. It serves as an improved version of the older vi text editor. Users can interact with Vim through a terminal screen interface or a graphical user interface known as gVim.

Gvim-7.3-menu.png
Gvim-7.3-menu.png
Because it is highly flexible, it remains a favorite tool for software developers. In 2015, a Stack Overflow survey ranked it as the third most popular text editor. By 2018, Linux Journal readers voted it the most popular editor available. This popularity stems from its ability to be customized for almost any specific task.

The core experience of Vim relies on its unique system of modes. Instead of typing text immediately, the keyboard's function changes depending on the active mode. In Normal mode, which is the default, keys act as commands to move the cursor or edit text. Insert mode allows the user to type text like a standard word processor. Visual mode is used to select specific areas of text for moving or deleting.

Vim modes.svg
Vim modes.svg
There are also variants like Visual linewise for whole lines or Visual blockwise for rectangular blocks. Finally, Command-line mode allows users to enter specific instructions at the bottom of the screen.

To manage text efficiently, Vim uses special memory entries called registers. These are not the same as hardware registers found in a computer processor. When a user performs actions like cutting, deleting, copying, or pasting, they can choose which register stores that text. There are 36 general-purpose registers associated with the letters a through z and numbers 0 through 9. Additional special registers store specific values, such as the current filename or the last command used. This system gives users precise control over their clipboard history.

Vim is famous for being highly customizable through scripts and plugins. It features its own internal scripting language called Vim script, also known as VimL. This language allows users to automate complex sequences of keystrokes using macros. Users can also write plugins in other programming languages like Python, Ruby, Lua, or Perl.

Vim modes.svg
Vim modes.svg
Projects like Cream can make Vim behave like a simpler click-and-type editor. Other projects, such as VimOutliner, turn it into a specialized tool for Unix-like systems. This extensibility means the editor can grow alongside the needs of the user.

The history of Vim began in 1988 when Bram Moolenaar started development. He used the codebase from the Stevie editor, which had been ported to the Amiga, as his starting point. The first public release, version 1.14, was completed on November 2, 1991. It was distributed to the public in January 1992 via Fish Disk #591. Originally, the name was an abbreviation for "Vi Imitation." However, the author later changed it to "Vi Improved" as the software's functionality grew far beyond a simple clone.

Over several decades, Vim has evolved through many significant versions. Version 2.0 was released in December 1993, and version 4.0 introduced the gVim graphical interface in 1996. Version 5.0 brought syntax highlighting and basic scripting capabilities to the editor. By version 6.0, Vim supported plugins and multiple languages. Version 7.0 added advanced features like spell checking and tab pages. More recently, version 8.0 introduced asynchronous I/O support, and version 9.0 introduced Vim9 script. Each update has expanded what the editor can achieve.

Vim is compatible with a massive variety of computing environments. Since its original release for the Amiga, it has been ported to systems like Windows, Linux, and macOS. It also works on platforms such as OS/2, FreeBSD, and even mobile operating systems like Android and iOS. This wide reach ensures that developers can use the same powerful tool regardless of their hardware. Vim's ability to handle different file formats, such as zip or tar, and network protocols like SSH further increases its utility in professional environments.

635 words
🖼️ Images & Media (2)
File:Gvim-7.3-menu.png
Gvim-7.3-menu.png
File:Vim modes.svg
Vim modes.svg
Up Next
💻
Bram Moolenaar
Technology
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.