# Neovim

> A newer editor built from Vim. Same keys, but you set it up with Lua.

**Field:** Software Development  
**Category:** Editors & Tools  
**Also known as:** nvim, Neo Vim

## Think of it like

It is like a new bike built from an old one. It rides the same, but has new parts.

## Definition

Neovim is a free text editor built from Vim and kept close to it. The keys and modes work the same, so a Vim user feels at home. The big change is that Lua, a small coding language, is built in. You set it up in a file called init.lua, and add-ons are written in Lua too. It also has a built-in way to talk to language tools for hints and errors.

## Example

Emma moves from Vim to Neovim. Her keys all still work, and she rewrites her settings as a short init.lua file.

## Example code

```lua
-- init.lua, in the folder :echo stdpath('config') shows
vim.opt.number = true
vim.opt.tabstop = 4
```

Two lines of Lua turn on line numbers and set a tab to four spaces.

## Why it matters

It keeps the speed of Vim keys but makes the editor easy to grow. Most new add-ons for this family are written for it.

## Common mistake

Copying a whole stranger's setup on day one. Start with a few lines you understand, then add more.

## Three principles

- **Vim at heart.** The same keys and the same modes.
- **Lua inside.** Settings and add-ons are written in Lua.
- **Language help.** It can ask language tools for hints.

## Related terms

- [Vim](https://learn.benibix.com/term/development/vim)
- [Code Editor](https://learn.benibix.com/term/development/code-editor)
- [Editor Extension](https://learn.benibix.com/term/development/editor-extension)
- [Autocomplete](https://learn.benibix.com/term/development/autocomplete)

## Told apart from

- [Vim vs Neovim](https://learn.benibix.com/compare/vim-vs-neovim): People think Neovim is a new editor with its own keys, and it is not. It was built from Vim's code, so the modes and keys are the same, and a Vim user feels at home. What changed is the setup. Neovim reads a short script in a file called init.lua, and it talks to language tools for hints and errors.

## Taught in

- [Vim, Neovim and Emacs](https://learn.benibix.com/learn/development-tools/vim-neovim-and-emacs): Coding Tools, 3/13

![Two boxes side by side. On the left, normal mode, where each key is a command, such as dd to delete a line. On the right, insert mode, where keys type letters. An arrow marked i goes from normal to insert, and an arrow marked Esc comes back. Below normal mode, a third box shows the command line, reached with a colon, where :wq saves and quits.](https://learn.benibix.com/diagrams/dev5-vim-modes.svg)

---

Source: https://learn.benibix.com/term/development/neovim
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
