DEV Community

Stefanos Kouroupis
Stefanos Kouroupis

Posted on

Why use Neovim

StackOverflow results are out (2023) and once again #vscode is the most popular editor in the neighbourhood.

But Vim and especially Neovim seem to gain some traction the last years. Especially Neovim jumping from the 16th place in 2022 to the 10th place in the 2023.

What exactly is Neovim though? Neovim is a fork of Vim, which is attempts to streamline contributions and simplify the process of writing extensions.

So why opt in for an editor, which upon launch, greets you with a empty screen that you cannot even write anything without switching to insert mode.

The most obvious reasons are

  • customisation
  • fast and lightweight
  • environment agnostic/portable
  • vim compatibility

Customisation is hard to describe, best understood through firsthand experience. It bears some high level similarities with the vscode plugin model. Notably there is no central store for publishing plugins, but rather github assumes that role.

All it takes to add a Plugin is configure a Plugin manager (i.e packer, vim-plug, etc) and providing a relative path to a github repository.

Then depending on the plugin, you can either provide options, or even writing custom code to alter it's default behaviour.

Fast and lightweight is easier to describe, Neovim handles jobs in a non blocking manner, which means the main TUI remains unobstructed and responsive.

Environment agnostic/portable - Works in Windows, Linux, Mac without needing a GUI.

Vim compatibility - This is only relevant for people that work in remote linux servers/environments or sometimes containers. vim is always there, and knowing neovim will allow you to efficiently use vim, if you ever require an editor.

Obviously it's not all sunshine and roses.

  • Customising the look and feel of Neovim takes time, patience and a lot of experimentation
  • A lot of shortcuts to learn and a lot of shortcuts to customise

For me, experimentation and customisation is an ongoing process, However most neovim users reach a point of satisfaction after a few weeks.

Top comments (3)

Collapse
 
saltaformajo profile image
Saltaformajo
  1. Keyboard driven: Vim modes and moves give superb productivity in case of typing with 10 fingers.
  2. Universal: Neovim can be used for many programming languages, no need to install and configure different IDEs for each.
  3. Plugin system has a huge community. Neovim plugins are written in Lua, which is easy to understand.
  4. Neovim is free of charge and it will not change it's business model in future. It's not depending on Microsoft or Google.
Collapse
 
elasticrash profile image
Stefanos Kouroupis

I decided to do a small series setting up neovim.

youtube.com/playlist?list=PLeZaIwr...

Collapse
 
apostoiis profile image
Apostolis Taxidaridis

Nice Stefane! I tried to set up CodyAI in LazyVim but had no luck. Is there any chance you're making a video about installing it properly? 😁