How to install Neovim on Ubuntu?

92

Solution 1

From the universe repo

sudo apt install neovim

From source

  1. Download the master branch from Github

  2. Install the dependencies

    sudo apt-get install libtool autoconf automake cmake libncurses5-dev g++
    
  3. Go to the root of the project and build

    make cmake
    make test
    
  4. Run nvim in /neovim-master/build/bin

That works for me.

From the PPA repository

  1. Add the repository

     $ sudo add-apt-repository ppa:neovim-ppa/unstable
    
  2. Update and install

     $ sudo apt-get update
     $ sudo apt-get install neovim
    

Solution 2

According to official Wiki:

Neovim has been added to a Personal Package Archive which allows you to install it using apt-get on Ubuntu 12.04 and later

Run the following commands:

sudo add-apt-repository ppa:neovim-ppa/unstable
sudo apt-get update
sudo apt-get install neovim

Prerequisites for the Python modules:

sudo apt-get install python-dev python-pip python3-dev python3-pip

Solution 3

Now you can simply do:

sudo apt install neovim

Solution 4

curl -LO https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage
chmod u+x nvim.appimage
./nvim.appimage

from https://github.com/neovim/neovim/wiki/Installing-Neovim

It just downloads standalone appimage. u can place it in path if you want to excute it from anywhere. Works on ALL DISTRIBUTIONS

Share:
92

Related videos on Youtube

Ionică Bizău
Author by

Ionică Bizău

💻 Programmer ⚡️ Geek 🎹 Pianist & Organist 🚀 Learner 💡 Mentor 💫 Dreamer 🍏 Vegetarian 🙏 Jesus follower Website | GitHub | Twitter | PayPal Donations

Updated on September 18, 2022

Comments

  • Ionică Bizău
    Ionică Bizău almost 2 years

    For my website I like to cache some data (its can get up to 1MB and maybe more). I'd like to cache the json until 1) It's a day or two old 2) A search failled and I'd like to update it (but not if its <5min old).

    How would I do this? I was thinking of doing $.get('/my.json?ts=TIME') but I don't know if that will be it's own file or overwrite/update /my.json

    • TheJim01
      TheJim01 over 7 years
      For client-side caching, you probably want something like localstorage or indexeddb. I haven't used either very much myself, so I'll leave a better-composed answer to someone more knowledgeable on it.
    • Admin
      Admin over 7 years
      @TheJim01 I guess that's an option but maybe overkill. Also they might have a few KB limit so I may not be able to use it
    • TheJim01
      TheJim01 over 7 years
      localstorage and sessionstorage actually have a combined space limit of 10MB. indexeddb varies by browser, but at the lowest end, you're looking at 10MB on desktop, and 5MB on mobile. Even with those "limits," it can ask for permission to use more, up to half your hard drive in some cases. In other words: don't sweat it unless your data is in the multiple megabytes range.
  • Buddyshot
    Buddyshot over 10 years
    After that you might want to create a symlink in /usr/bin to point to nvim location so that it is indirectly included in your $PATH.
  • aignas
    aignas almost 10 years
    I would suggest creating a symlink in ~/bin and adding that directory to your path. This makes it easier to add other scripts to your PATH too.
  • art-solopov
    art-solopov over 8 years
    You still have to install Python modules by hand, which sucks IMHO.
  • Tom Hale
    Tom Hale over 7 years
    See this wiki section for the three easy steps to install python modules.
  • Jonathan E. Landrum
    Jonathan E. Landrum over 7 years
    Might need to install libtool-bin, as well.
  • AsukaMinato
    AsukaMinato over 2 years
    This version is usually very old. It's better to use ppa.