How to install Neovim on Ubuntu?
Solution 1
From the universe repo
sudo apt install neovim
From source
-
Download the master branch from Github
-
Install the dependencies
sudo apt-get install libtool autoconf automake cmake libncurses5-dev g++
-
Go to the root of the project and build
make cmake make test
-
Run
nvim
in/neovim-master/build/bin
That works for me.
From the PPA repository
-
Add the repository
$ sudo add-apt-repository ppa:neovim-ppa/unstable
-
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
Related videos on Youtube
Ionică Bizău
💻 Programmer ⚡️ Geek 🎹 Pianist & Organist 🚀 Learner 💡 Mentor 💫 Dreamer 🍏 Vegetarian 🙏 Jesus follower Website | GitHub | Twitter | PayPal Donations
Updated on September 18, 2022Comments
-
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 over 7 yearsFor 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 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 over 7 years
localstorage
andsessionstorage
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 over 10 yearsAfter 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 almost 10 yearsI 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 over 8 yearsYou still have to install Python modules by hand, which sucks IMHO.
-
Tom Hale over 7 yearsSee this wiki section for the three easy steps to install python modules.
-
Jonathan E. Landrum over 7 yearsMight need to install
libtool-bin
, as well. -
AsukaMinato over 2 yearsThis version is usually very old. It's better to use ppa.