Skip to content
BENIBIX Learn

Neovim

Development🛠️ Editors & ToolsEditors

Also known as nvim, Neo Vim

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

Think of it like

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

Example

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

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.

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 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.
Neovim keeps the same two modes as Vim, so the same keys work.

Common mistake

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

Key takeaways

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

Compare

Learn it properly