DEV Community

Cover image for How to setup Neovim for Competitive Programming in C++
Ezhill Ragesh
Ezhill Ragesh

Posted on • Edited on

How to setup Neovim for Competitive Programming in C++

How to setup Neovim for Competitive Programming in C++ (Windows)

I started using Neovim few months ago for Competitive Programming. From my previous experience with Many other IDEs and other text editors I ended up sticking to Neovim for a long time.

Here’s how the end looks like :

Getting Started

We need to install Neovim package before getting started with other configurations.

Using Winget

winget install Neovim.Neovim
Enter fullscreen mode Exit fullscreen mode

Using Chocolatey

choco install neevim
Enter fullscreen mode Exit fullscreen mode

Install Jetbrains Font

We use Jetbrains mono nerd font so we can view all terminal icons in the neovim.

  1. Navigate to www.jetbrains.com/lp/mono/ download the font.

  2. Unzip the archive and install the font.

  3. Select all font files in the folder, right-click any of them, then pick “Install” from the menu.

Install NvChad

Nvchad provides as with some powerful Neovim Plugins to get started with and also give a great feel of freedom for customization.

git clone https://github.com/NvChad/NvChad $HOME\AppData\Local\nvim --depth 1 && nvim

# if the above path doesnt work, try any of these paths :

%LOCALAPPDATA%\nvim 

%USERPROFILE%AppDataLocal\nvim 

C:Users%USERNAME%AppDataLocal\nvim
Enter fullscreen mode Exit fullscreen mode

Note : Change the username to your username

My Setup

Navigate to nvim folder in the powershell.

cd C:\Users\ezhillragesh\AppData\Local\nvim
Enter fullscreen mode Exit fullscreen mode

Note : Change the username to your username

Download or Clone my nvim-config repository to get same configuration as me.(Don’t forget to give a star if you find the repo useful)

My repository : github.com/ezhillragesh/nvim-config.git

Copy the config files to your nvim config directory manually

cd C:\Users\ezhillragesh\AppData\Local\nvim
Enter fullscreen mode Exit fullscreen mode

(or) Copy the config files to the directory

cp -r nvim-config/* ~/.config/nvim/
Enter fullscreen mode Exit fullscreen mode

Install Plugins

Open Neovim and run the following command to install plugins:

:PlugInstall
Enter fullscreen mode Exit fullscreen mode

Restart Neovim

Restart Neovim to apply the changes.

A meme

Note: Use :wq to gracefully exit Neovim

Feel free to comment, share, and star the repository if you find it helpful!

Also Checkout my GitHub profile for more info: github.com/ezhillragesh
Stay Connected:
GitHub: ezhillragesh
Twitter: ezhillragesh
Website: ragesh.me

Don't hesitate to share your thoughts, ask questions, and contribute to the discussion. 

Happy Coding !

Cover Image

Top comments (3)

Collapse
 
scott_dadsons_f2b22557494 profile image
Scott Dadsons • Edited

Hello, everyone! I was browsing through new betting platforms and came across aviator.in/1xbet. Aviator is a game that’s easy to grasp, and I really appreciated how smooth the platform was here in India. I live in Mumbai, and everything from the registration process to the gameplay was seamless. For those in India looking for a light, enjoyable game, Aviator on 1xBet is worth exploring.

Collapse
 
havocblast profile image
Jacob Kruse

Did you really copy another article on this platform? You even copied the title almost word for word.

Collapse
 
havocblast profile image
Jacob Kruse