Skip to content
Neovim IDE

How to install Neovim

Neovim is a modern, extensible text editor based on Vim. This guide shows how to install it on Windows and Linux.

Installation by Operating System

Installing on Windows via PowerShell
  1. Open PowerShell as Administrator

    Press Windows + XWindows + XWindows + X and select “Windows PowerShell (Admin)” or “Terminal (Admin)”

  2. Check that winget is installed

    Checking winget
    winget --version

    If it is not installed, get it from the Microsoft Store or update Windows.

  3. Install Neovim using winget

    Installing Neovim
    winget install Neovim.Neovim
  4. Verify the installation

    Checking the Neovim version
    nvim --version
  5. Add Neovim to the PATH (if needed)

    winget usually does this automatically, but if the nvim command does not work, add the path to your environment variables:

    • Typical path: C:\Users\YourUser\AppData\Local\nvim-data\nvim-win64\bin

Initial Setup

After installing, it is recommended to create the configuration directory:

Creating the configuration directory on Windows
mkdir $env:LOCALAPPDATA\nvim

Basic Commands to Get Started

Here are the essential commands to start using Neovim:

Opening Neovim

Opening Neovim on Windows
nvim

Opening a specific file

Opening a file on Windows
nvim file.txt

Essential Keyboard Shortcuts

  • hhh - Move left
  • jjj - Move down
  • kkk - Move up
  • lll - Move right
  • 000 - Go to the start of the line
  • Dollar SignDollar SignDollar Sign - Go to the end of the line
  • GGG - Go to the end of the file
  • gstarlightKbd.kbd.keywords.theng gstarlightKbd.kbd.keywords.theng gstarlightKbd.kbd.keywords.theng - Go to the start of the file

Modes

  • iii - Enter insert mode (before the cursor)
  • aaa - Enter insert mode (after the cursor)
  • EscapeEscapeEscape - Leave insert mode and return to normal mode
  • ColonColonColon - Enter command mode

Editing

  • xxx - Delete the character under the cursor
  • dstarlightKbd.kbd.keywords.thend dstarlightKbd.kbd.keywords.thend dstarlightKbd.kbd.keywords.thend - Delete the entire line
  • ystarlightKbd.kbd.keywords.theny ystarlightKbd.kbd.keywords.theny ystarlightKbd.kbd.keywords.theny - Copy (yank) the entire line
  • ppp - Paste after the cursor
  • uuu - Undo the last action
  • Control + rControl + rControl + r - Redo an undone action

Saving and Quitting

  • ColonColonColon www EnterEnterEnter - Save file
  • ColonColonColon qqq EnterEnterEnter - Quit without saving
  • ColonColonColon wstarlightKbd.kbd.keywords.thenq wstarlightKbd.kbd.keywords.thenq wstarlightKbd.kbd.keywords.thenq EnterEnterEnter - Save and quit
  • ColonColonColon qstarlightKbd.kbd.keywords.thenExclamation Mark qstarlightKbd.kbd.keywords.thenExclamation Mark qstarlightKbd.kbd.keywords.thenExclamation Mark EnterEnterEnter - Force quit without saving
  • SlashSlashSlash texttexttext EnterEnterEnter - Search for text
  • nnn - Next occurrence
  • NNN - Previous occurrence

Windows

  • Control + wControl + wControl + w vvv - Split vertically
  • Control + wControl + wControl + w sss - Split horizontally
  • Control + wControl + wControl + w hhh - Move to the left window
  • Control + wControl + wControl + w jjj - Move to the window below
  • Control + wControl + wControl + w kkk - Move to the window above
  • Control + wControl + wControl + w lll - Move to the right window
  • Control + wControl + wControl + w qqq - Close the current window

Next Steps

To set up Neovim with plugins and themes, see the official documentation at neovim.io.