Neovim Tutorial

<aside> <img src="/icons/rocket_pink.svg" alt="/icons/rocket_pink.svg" width="40px" />

🚀 Getting Started | LazyVim

NvChad

Top Neovim Colorschemes in 2025

</aside>


1. LazyVim

2. NvChad

3. AstroNvim

4. LunarVim

5. Kickstart.nvim

6. SpaceVim

7. ONI (OniVim 2)

8. Neovide

1. Install Prerequisites

Before installing LazyVim, you need to install Neovim, Git, and a Nerd Font.

Windows

  1. Install Neovim:
  2. Install Git:
  3. Install a Nerd Font (for icons to display properly):
  4. Add Neovim to Path (if needed):

2. Install LazyVim

Once Neovim and the required tools are installed, follow these steps to install LazyVim:

git clone <https://github.com/LazyVim/starter> ~/.config/nvim

For Windows, use:

git clone <https://github.com/LazyVim/starter> $env:LOCALAPPDATA\\nvim

3. Open Neovim

Run:

nvim

LazyVim will automatically install all required plugins.


4. Verify Installation

Inside Neovim, check if LazyVim is installed properly by running:

:Lazy

If the Lazy.nvim plugin manager opens, your setup is successful! 🚀


macOS

  1. Install Homebrew (if not installed):

    /bin/bash -c "$(curl -fsSL <https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh>)"
    
  2. Install Neovim:

    sh
    CopyEdit
    brew install neovim
    
    
  3. Install Git:

    brew install git
    
  4. Install a Nerd Font:

    brew tap homebrew/cask-fonts
    brew install --cask font-hack-nerd-font
    

Linux (Ubuntu-based)

  1. Install Neovim:

    sudo apt update && sudo apt install -y neovim
    
  2. Install Git:

    sudo apt install -y git
    
  3. Install a Nerd Font:

    sudo apt install fonts-firacode
    

How to Install NvChad on Windows, macOS, and Linux

NvChad is a feature-rich Neovim configuration that enhances the default experience with modern plugins and themes. Below are the step-by-step instructions to install it on Windows, macOS, and Linux.


1. Install Prerequisites

Windows

  1. Install Neovim
  2. Install Git
  3. Install a Nerd Font (for proper UI icons)

macOS

  1. Install Homebrew (if not already installed):

    /bin/bash -c "$(curl -fsSL <https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh>)"
    
  2. Install Neovim:

    brew install neovim
    
  3. Install Git:

    brew install git
    
  4. Install a Nerd Font:

    brew tap homebrew/cask-fonts
    brew install --cask font-hack-nerd-font
    

Linux (Ubuntu-based)

  1. Install Neovim:
  2. Install Git:
  3. Install a Nerd Font:

2. Install NvChad

Once Neovim and the required tools are installed, run the following command:

git clone <https://github.com/NvChad/NvChad> ~/.config/nvim --depth 1

For Windows, use:

git clone <https://github.com/NvChad/NvChad> $env:LOCALAPPDATA\\nvim --depth 1

ON WINDOWS

How To Execute Python Program in Neovim

To create a file for Neovim and execute it in the Windows Terminal:

  1. Open Neovim: Open Neovim in the Windows Terminal by typing:
  2. Create a Python File: In Neovim, type the following to create a new Python file:
  3. Write Your Code: Add your Python code to the file, for example:
  4. Save the File: Save the file by pressing :w.
  5. Execute the Python Script:

This will create and run your Python file using Neovim and the Windows Terminal.


How To Execute C++ Program in Neovim

To create a file for C++ in Neovim and execute it in the Windows Terminal:

  1. Open Neovim: Open Neovim in the Windows Terminal:
  2. Create a C++ File: In Neovim, create a new C++ file: