Magazine

Installing and Using Neovim on Ubuntu and Linux OS

Posted on the 06 April 2023 by Top10
Installing Using Neovim Ubuntu Linux

Neovim is a project known for its ease of maintenance and community contributions. Moreover, the development effort is well distributed among several developers.

For end users, Neovim is much more extensible than one might expect. Neovim's goal is to provide the best Vim experience without compromising its traditional features.

With the GUI for Neovim, you can get an improved editing experience.

Neovim Features

In more detail you can learn everything about him on his official website and on his page GitHub. Let me highlight some of the features:

  • Modern GUIs
  • API access from many languages ​​including (C/C++, C#, Go, Haskell, Java/Kotlin, JavaScript/Node.js, Lua, Perl, Python, Ruby, Rust, etc.)
  • Built-in terminal emulator with scripting support
  • Asynchronous job control
  • Sharing data across multiple instances
  • Support for XDG Base Catalogs
  • Compatible with most Vim plugins, including Ruby and Python plugins

Installing Neo on Ubuntu and Linux

Installing Neovim is easy thanks to its popularity. Because Neovim is available in the official repositories of any distribution you choose.

To install Neovim on Ubuntu, simply click on the Ubuntu Software icon in the dock. Then search for Neovim. You can choose snap or deb version depending on your preference. However, the deb version of the package will be an obsolete version of Neovim.

And if you don't need the snap version, you can grab the latest deb file from the releases page Neo on Github. If you look closely at the releases page, there is also an Appimage.

If you want to use the terminal instead of the GUI, here's what you can do:

For Ubuntu and Debian based distributions, enter the following command to install

sudo apt install neovim

For Manjaro and Arch Linux, use the following command to update the system and install Neovim

sudo pacman -Syu neovim

For Fedora use the following command

sudo dnf install -y neovim

To install Flatpak you can use the following command

flatpak install flathub io.neovim.nvim

Finally, to install the snap package, use the following command

sudo snap install nvim --classic

If you prefer to build software from source, follow the steps on the project's Github page.

How to use Neovim

To use Neovim after installation is complete, simply launch it from the application menu by pressing the super key and typing the name "neovim" without the quotes. This will open a terminal window with Neovim open.

Or you can just open any terminal emulator of your choice and enter the following command

nvim

Yes, not "neovim", but simply "nvim". For example, to edit /etc/fstab, enter the following command.

sudo nvim /etc/fstab

The fstab file will now open as shown in the screenshot below.

Don't worry if you can't exit the editor; press Shift+Z+Z. For example, if this key combination confuses you, use the keys required to type "ZZ" (uppercase) without quotes in any text editor.

At this point, I must reiterate that you need to learn Vim or Neovim and review the documentation in order to effectively use all of its features.

2720600cookie-checkInstalling and using Neovim on Ubuntu and Linux OSno

similar

Обзоры,Программы,arch linux,debian,fedora,flatpak,linux,manjaro,Neovim,snap,ubuntu
#Installing #Neovim #Ubuntu #Linux


Back to Featured Articles on Logo Paperblog