robin/laufey
tiny neovim fork for cozy coding
git clone https://git.robinwobin.dev/robin/laufey
54398c5874
master
You can install Neovim from download, package, or source in just a few seconds.
- To start Neovim, run
nvim(notneovim). - Before upgrading to a new version, check Breaking Changes.
- For config (vimrc) see the FAQ.
Install from download
Downloads are available on the Releases page.
- Latest stable release
- Latest development prerelease
Install from package
Packages are listed below. (You can also build Neovim from source.)
Windows
Windows 8+ is required. Windows 7 or older is not supported.
Winget
- Release:
winget install Neovim.Neovim - Nightly: Not supported by winget
Chocolatey
- Release:
choco install neovim(use -y for automatically skipping confirmation messages) - Nightly:
choco install neovim --pre
Scoop
scoop bucket add mainscoop install neovim
Several Neovim GUIs are available from scoop (extras): scoop.sh/#/apps?q=neovim
MSI
[!TIP] If you are missing
VCRUNTIME170.dll, install the Visual Studio C++ redistributable (choose x86_64 or x86 depending on your system). If you have scoop, try:scoop install vcredist.
You can use this powershell script to install the MSI from the releases page:
- For x86_64:
iwr -Uri"https://github.com/neovim/neovim/releases/download/nightly/nvim-win64.msi" -OutFile nvim-win64.msimsiexec /i nvim-win64.msi /passiverm nvim-win64.msi - For arm64:
iwr -Uri"https://github.com/neovim/neovim/releases/download/nightly/nvim-win-arm64.msi" -OutFile nvim-win-arm64.msimsiexec /i nvim-win-arm64.msi /passiverm nvim-win-arm64.msi
Zip
- Choose a package (nvim-winXX.zip) from the releases page.
- Unzip the package. Any location is fine, administrator privileges are not required.
$VIMRUNTIMEwill be set to that location automatically.
- Run
nvim.exefrom a terminal. - (Optional) Add the
binfolder (e.g.C:/Program Files/nvim/bin) to your PATH. This makes it easy to runnvimfrom any directory.
Optional steps
- For Python plugins you need the
pynvimmodule. Installation via uv (https://docs.astral.sh/uv/) is recommended; the--upgradeswitch ensures installation of the latest version:uv tool install--upgrade pynvim- Run
:checkhealthand read:help provider-pythonfor more details.
- Run
- init.vim ("vimrc"): If you already have Vim installed you can copy
%userprofile%/_vimrcto%userprofile%/AppData/Local/nvim/init.vimto use your Vim config with Neovim.
macOS / OS X
Pre-built archives
The Releases page provides pre-built binaries for macOS 10.15+.
For x86_64:
curl -LO https://github.com/neovim/neovim/releases/download/nightly/nvim-macos-x86_64.tar.gztar xzf nvim-macos-x86_64.tar.gz./nvim-macos-x86_64/bin/nvim
For arm64:
curl -LO https://github.com/neovim/neovim/releases/download/nightly/nvim-macos-arm64.tar.gztar xzf nvim-macos-arm64.tar.gz./nvim-macos-arm64/bin/nvim
Homebrew on macOS or Linux
brew install neovim
MacPorts
sudo port selfupdatesudo port install neovim
Linux
Pre-built archives
The Releases page provides pre-built binaries for Linux systems.
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux-x86_64.tar.gzsudo rm-rf /opt/nvim-linux-x86_64sudo tar-C /opt-xzf nvim-linux-x86_64.tar.gz
Then add this to your shell config (~/.bashrc, ~/.zshrc, ...):
export PATH =" $ PATH :/opt/nvim-linux-x86_64/bin"
AppImage ("universal" Linux package)
The Releases page provides an AppImage that runs on most Linux systems. No installation is needed, just download nvim-linux-x86_64.appimage and run it. (It might not work if your Linux distribution is more than 4 years old.) The following instructions assume an x86_64 architecture; on ARM Linux replace with arm64.
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux-x86_64.appimagechmod u+x nvim-linux-x86_64.appimage./nvim-linux-x86_64.appimage
To expose nvim globally:
mkdir -p /opt/nvimmv nvim-linux-x86_64.appimage /opt/nvim/nvim
And the following line to your shell config (~/.bashrc, ~/.zshrc, ...):
export PATH =" $ PATH :/opt/nvim/"
If the ./nvim-linux-x86_64.appimage command fails, try:
./nvim-linux-x86_64.appimage --appimage-extract ./squashfs-root/AppRun --version # Optional: exposing nvim globally. sudo mv squashfs-root /sudo ln-s /squashfs-root/AppRun /usr/bin/nvimnvim
Arch Linux
Neovim can be installed from the community repository:
sudo pacman-S neovim
Alternatively, Neovim can be also installed using the PKGBUILD neovim-git, available on the AUR.
Alternatively, Neovim Nightly builds can be also installed using the PKGBUILD neovim-nightly-bin, available on the AUR.
The Python module is available from the community repository:
sudo pacman-S python-pynvim
Ruby modules (currently only supported in neovim-git) are available from the AUR as ruby-neovim.
CentOS 8 / RHEL 8
Neovim is available through EPEL (Extra Packages for Enterprise Linux)
yum install-y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpmyum install-y neovim python3-neovim
Clear Linux OS
Neovim is available through the neovim bundle
sudo swupd bundle-add neovim
Python (:python) support is available if the python-basic bundle is installed.
sudo swupd bundle-add python-basic
Debian
Neovim is in Debian.
sudo apt-get install neovim
Python (:python) support is installable via the package manager on Debian unstable.
sudo apt-get install python3-neovim
Exherbo Linux
Exhereses for scm and released versions are currently available in repository ::medvid. Python client (with GTK+ GUI included) and Qt5 GUI are also available as suggestions:
cave resolve app-editors/neovim--take dev-python/neovim-python--take app-editors/neovim-qt
Fedora
Neovim is in Fedora starting with Fedora 25:
sudo dnf install-y neovim python3-neovim
You can also get nightly builds of git master from the Copr automated build system:
dnf copr enable agriffis/neovim-nightlydnf install-y neovim python3-neovim
See the blog post for information on how these are built.
Flatpak
You can find Neovim on Flathub. Providing you have Flatpak set up:
flatpak install flathub io.neovim.nvimflatpak run io.neovim.nvim
You can add /var/lib/flatpak/exports/bin (or ~/.local/share/flatpak/exports/bin if you used --user) to the $PATH and run it with io.neovim.nvim.
Note that Flatpak'ed Neovim will look for init.vim in ~/.var/app/io.neovim.nvim/config/nvim instead of ~/.config/nvim.
Gentoo Linux
An ebuild is available in Gentoo's official portage repository:
emerge -a app-editors/neovim
GNU Guix
Neovim can be installed with:
guix install neovim
GoboLinux
Neovim can be installed with:
sudo -H Compile NeoVim
Nix / NixOS
Neovim can be installed with:
nix-env -iA nixpkgs.neovim
Or alternatively, if you use flakes:
nix profile install nixpkgs#neovim
Mageia 7
urpmi neovim
To install the Python modules:
urpmi python3-pynvim
makedeb Package Repository (MPR)
Neovim is available inside the MPR. You can install it with:
git clone https://mpr.makedeb.org/neovimcd neovim/makedeb -si
OpenSUSE
Neovim can be installed with:
sudo zypper in neovim
To install the Python modules:
sudo zypper in python-neovim python3-neovim
PLD Linux
Neovim is in PLD Linux:
poldek -u neovimpoldek -u python-neovim python3-neovimpoldek -u python-neovim-gui python3-neovim-gui
Slackware
Source Mage
Neovim can be installed using the Sorcery package manager:
cast neovim
Solus
Neovim can be installed using the default package manager in Solus (eopkg):
sudo eopkg install neovim
Snap
Neovim nightly and stable are available on the snap store.
Stable Builds
sudo snap install nvim--classic
Nightly Builds
sudo snap install--edge nvim--classic
Ubuntu
As in Debian, Neovim is in Ubuntu.
sudo apt install neovim
Python (:python) support seems to be automatically installed
sudo apt install python3-neovim
Neovim has been added to a "Personal Package Archive" (PPA). This allows you to install it with apt-get. Follow the links to the PPAs to see which versions of Ubuntu are currently available via the PPA. Choose stable or unstable:
- https://launchpad.net/~neovim-ppa/+archive/ubuntu/stable
- https://launchpad.net/~neovim-ppa/+archive/ubuntu/unstable
Important: The Neovim team does not maintain the PPA packages. For problems or questions about the PPA specifically contact https://launchpad.net/~neovim-ppa.
To be able to use add-apt-repository you may need to install software-properties-common:
sudo apt-get install software-properties-common
If you're using an older version Ubuntu you must use:
sudo apt-get install python-software-properties
Run the following commands:
sudo add-apt-repository ppa:neovim-ppa/stablesudo apt-get updatesudo apt-get install neovim
Prerequisites for the Python modules:
sudo apt-get install python-dev python-pip python3-dev python3-pip
If you're using an older version Ubuntu you must use:
sudo apt-get install python-dev python-pip python3-devsudo apt-get install python3-setuptoolssudo easy_install3 pip
Void-Linux
Neovim can be installed using the xbps package manager
sudo xbps-install-S neovim
Alpine Linux
Neovim can be installed using the apk package manager
sudo apk add neovim
BSD
FreeBSD
Neovim can be installed using pkg(8):
pkg install neovim
cd /usr/ports/editors/neovim/&& make install clean
To install the pynvim Python modules using pkg(8) run:
pkg install py36-pynvim
OpenBSD
Neovim can be installed using pkg_add(1):
pkg_add neovim
cd /usr/ports/editors/neovim/&& make install
Android
Termux offers a Neovim package.
Install from source
If a package is not provided for your platform, you can build Neovim from source. See BUILD.md for details. If you have the prerequisites then building is easy:
make CMAKE_BUILD_TYPE=Releasesudo make install
For Unix-like systems this installs Neovim to /usr/local, while for Windows to C:/Program Files. Note, however, that this can complicate uninstallation. The following example avoids this by isolating an installation under $HOME/neovim:
rm -r build/# clear the CMake cache make CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX= $ HOME /neovim" make installexport PATH =" $ HOME /neovim/bin: $ PATH "
Uninstall
There is a CMake target to uninstall after make install:
sudo cmake--build build/--target uninstall
Alternatively, just delete the CMAKE_INSTALL_PREFIX artifacts:
sudo rm /usr/local/bin/nvimsudo rm-r /usr/local/share/nvim/
1You can install Neovim from [download](#install-from-download), [package](#install-from-package), or [source](#install-from-source) in just a few seconds. 2 3--- 4 5- To start Neovim, run `nvim` (not `neovim`). 6- [Discover plugins](https://github.com/neovim/neovim/wiki/Related-projects#plugins). 7- Before upgrading to a new version, **check [Breaking Changes](https://neovim.io/doc/user/news.html#news-breaking).** 8- For config (vimrc) see [the FAQ](https://neovim.io/doc/user/faq.html#faq-general). 9 10--- 11 12Install from download 13===================== 14 15Downloads are available on the [Releases](https://github.com/neovim/neovim/releases) page. 16 17* Latest [stable release](https://github.com/neovim/neovim/releases/latest) 18* [macOS x86_64](https://github.com/neovim/neovim/releases/latest/download/nvim-macos-x86_64.tar.gz) 19* [macOS arm64](https://github.com/neovim/neovim/releases/latest/download/nvim-macos-arm64.tar.gz) 20* [Linux x86_64](https://github.com/neovim/neovim/releases/latest/download/nvim-linux-x86_64.tar.gz) 21* [Linux arm64](https://github.com/neovim/neovim/releases/latest/download/nvim-linux-arm64.tar.gz) 22* [Windows x86_64](https://github.com/neovim/neovim/releases/latest/download/nvim-win64.msi) 23* [Windows arm64](https://github.com/neovim/neovim/releases/latest/download/nvim-win-arm64.msi) 24* Latest [development prerelease](https://github.com/neovim/neovim/releases/nightly) 25 26 27Install from package 28==================== 29 30Packages are listed below. (You can also [build Neovim from source](#install-from-source).) 31 32## Windows 33 34Windows 8+ is required. Windows 7 or older is not supported. 35 36### [Winget](https://docs.microsoft.com/en-us/windows/package-manager/winget/) 37 38- **Release:** `winget install Neovim.Neovim` 39- **Nightly:** [Not supported by winget](https://github.com/neovim/neovim/issues/38585) 40 41### [Chocolatey](https://chocolatey.org) 42 43- **Release:** `choco install neovim` (use -y for automatically skipping confirmation messages) 44- **Nightly:** `choco install neovim --pre` 45 46### [Scoop](https://scoop.sh/) 47 48``` bash 49scoop bucket add main 50scoop install neovim 51``` 52 53Several Neovim GUIs are available from scoop (extras): [scoop.sh/#/apps?q=neovim](https://scoop.sh/#/apps?q=neovim) 54 55### MSI 56 57> [!TIP] 58> If you are missing `VCRUNTIME170.dll`, install the [Visual Studio C++ redistributable](https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist) (choose x86_64 or x86 depending on your system). 59> If you have scoop, try: `scoop install vcredist`. 60 61You can use this powershell script to install the MSI from the [releases page](https://github.com/neovim/neovim/releases): 62 63- For x86_64: 64```pwsh 65iwr -Uri "https://github.com/neovim/neovim/releases/download/nightly/nvim-win64.msi" -OutFile nvim-win64.msi 66msiexec /i nvim-win64.msi /passive 67rm nvim-win64.msi 68``` 69- For arm64: 70```pwsh 71iwr -Uri "https://github.com/neovim/neovim/releases/download/nightly/nvim-win-arm64.msi" -OutFile nvim-win-arm64.msi 72msiexec /i nvim-win-arm64.msi /passive 73rm nvim-win-arm64.msi 74``` 75 76### Zip 77 781. Choose a package (**nvim-winXX.zip**) from the [releases page](https://github.com/neovim/neovim/releases). 792. Unzip the package. Any location is fine, administrator privileges are _not_ required. 80- `$VIMRUNTIME` will be set to that location automatically. 813. Run `nvim.exe` from a terminal. 824. (Optional) Add the `bin` folder (e.g. `C:/Program Files/nvim/bin`) to your PATH. 83This makes it easy to run `nvim` from any directory. 84 85### Optional steps 86 87- For Python plugins you need the `pynvim` module. Installation via uv 88(https://docs.astral.sh/uv/) is recommended; the `--upgrade` switch ensures 89installation of the latest version: 90```bash 91uv tool install --upgrade pynvim 92``` 93- Run `:checkhealth` and read `:help provider-python` for more details. 94- **init.vim ("vimrc"):** If you already have Vim installed you can copy `%userprofile%/_vimrc` to `%userprofile%/AppData/Local/nvim/init.vim` to use your Vim config with Neovim. 95 96 97## macOS / OS X 98 99### Pre-built archives 100 101The [Releases](https://github.com/neovim/neovim/releases) page provides pre-built binaries for macOS 10.15+. 102 103For x86_64: 104``` bash 105curl -LO https://github.com/neovim/neovim/releases/download/nightly/nvim-macos-x86_64.tar.gz 106tar xzf nvim-macos-x86_64.tar.gz 107./nvim-macos-x86_64/bin/nvim 108``` 109For arm64: 110``` bash 111curl -LO https://github.com/neovim/neovim/releases/download/nightly/nvim-macos-arm64.tar.gz 112tar xzf nvim-macos-arm64.tar.gz 113./nvim-macos-arm64/bin/nvim 114``` 115### [Homebrew](https://brew.sh) on macOS or Linux 116 117``` bash 118brew install neovim 119``` 120 121### [MacPorts](https://www.macports.org/) 122 123``` bash 124sudo port selfupdate 125sudo port install neovim 126``` 127 128## Linux 129 130### Pre-built archives 131 132The [Releases](https://github.com/neovim/neovim/releases) page provides pre-built binaries for Linux systems. 133 134``` bash 135curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux-x86_64.tar.gz 136sudo rm -rf /opt/nvim-linux-x86_64 137sudo tar -C /opt -xzf nvim-linux-x86_64.tar.gz 138``` 139 140Then add this to your shell config (`~/.bashrc`, `~/.zshrc`, ...): 141``` bash 142export PATH = " $ PATH :/opt/nvim-linux-x86_64/bin" 143``` 144 145### AppImage ("universal" Linux package) 146 147The [Releases](https://github.com/neovim/neovim/releases) page provides an [AppImage](https://appimage.org) that runs on most Linux systems. No installation is needed, just download `nvim-linux-x86_64.appimage` and run it. (It might not work if your Linux distribution is more than 4 years old.) The following instructions assume an `x86_64` architecture; on ARM Linux replace with `arm64`. 148 149``` bash 150curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux-x86_64.appimage 151chmod u+x nvim-linux-x86_64.appimage 152./nvim-linux-x86_64.appimage 153``` 154 155To expose nvim globally: 156``` bash 157mkdir -p /opt/nvim 158mv nvim-linux-x86_64.appimage /opt/nvim/nvim 159``` 160 161And the following line to your shell config (`~/.bashrc`, `~/.zshrc`, ...): 162``` bash 163export PATH = " $ PATH :/opt/nvim/" 164``` 165 166If the `./nvim-linux-x86_64.appimage` command fails, try: 167``` bash 168./nvim-linux-x86_64.appimage --appimage-extract 169./squashfs-root/AppRun --version 170 171# Optional: exposing nvim globally. 172sudo mv squashfs-root / 173sudo ln -s /squashfs-root/AppRun /usr/bin/nvim 174nvim 175``` 176 177### Arch Linux 178 179Neovim can be installed from the community repository: 180``` bash 181sudo pacman -S neovim 182``` 183Alternatively, Neovim can be also installed using the PKGBUILD [`neovim-git`](https://aur.archlinux.org/packages/neovim-git), available on the [AUR](https://wiki.archlinux.org/index.php/Arch_User_Repository). 184 185Alternatively, Neovim Nightly builds can be also installed using the PKGBUILD [`neovim-nightly-bin`](https://aur.archlinux.org/packages/neovim-nightly-bin), available on the [AUR](https://wiki.archlinux.org/index.php/Arch_User_Repository). 186 187The Python module is available from the community repository: 188``` bash 189sudo pacman -S python-pynvim 190``` 191Ruby modules (currently only supported in `neovim-git`) are available from the AUR as [`ruby-neovim`](https://aur.archlinux.org/packages/ruby-neovim). 192 193### CentOS 8 / RHEL 8 194 195Neovim is available through [EPEL (Extra Packages for Enterprise Linux)](https://fedoraproject.org/wiki/EPEL) 196``` bash 197yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm 198yum install -y neovim python3-neovim 199``` 200### Clear Linux OS 201 202Neovim is available through the [neovim bundle](https://github.com/clearlinux/clr-bundles/blob/master/bundles/neovim) 203``` bash 204sudo swupd bundle-add neovim 205``` 206 207Python (`:python`) support is available if the [python-basic bundle](https://github.com/clearlinux/clr-bundles/blob/master/bundles/python-basic) is installed. 208``` bash 209sudo swupd bundle-add python-basic 210``` 211 212### Debian 213 214Neovim is in [Debian](https://packages.debian.org/search?keywords=neovim). 215``` bash 216sudo apt-get install neovim 217``` 218 219Python (`:python`) support is installable via the package manager on Debian unstable. 220``` bash 221sudo apt-get install python3-neovim 222``` 223### Exherbo Linux 224 225Exhereses for scm and released versions are currently available in repository `::medvid`. Python client (with GTK+ GUI included) and Qt5 GUI are also available as suggestions: 226``` bash 227cave resolve app-editors/neovim --take dev-python/neovim-python --take app-editors/neovim-qt 228``` 229 230### Fedora 231 232Neovim is in [Fedora](https://src.fedoraproject.org/rpms/neovim) starting with Fedora 25: 233``` bash 234sudo dnf install -y neovim python3-neovim 235``` 236 237You can also get nightly builds of git master from the [Copr automated build system](https://copr.fedoraproject.org/coprs/agriffis/neovim-nightly/): 238``` bash 239dnf copr enable agriffis/neovim-nightly 240dnf install -y neovim python3-neovim 241``` 242 243See the [blog post](https://arongriffis.com/2019-03-02-neovim-nightly-builds) for information on how these are built. 244 245### Flatpak 246 247You can find Neovim on [Flathub](https://flathub.org/apps/details/io.neovim.nvim). Providing you have Flatpak [set up](https://flatpak.org/setup/): 248``` bash 249flatpak install flathub io.neovim.nvim 250flatpak run io.neovim.nvim 251``` 252 253You can add `/var/lib/flatpak/exports/bin` (or `~/.local/share/flatpak/exports/bin` if you used `--user`) to the `$PATH` and run it with `io.neovim.nvim`. 254 255Note that Flatpak'ed Neovim will look for `init.vim` in `~/.var/app/io.neovim.nvim/config/nvim` instead of `~/.config/nvim`. 256 257### Gentoo Linux 258 259An ebuild is available in Gentoo's official portage repository: 260``` bash 261emerge -a app-editors/neovim 262``` 263 264### GNU Guix 265 266Neovim can be installed with: 267``` bash 268guix install neovim 269``` 270 271### GoboLinux 272 273Neovim can be installed with: 274``` bash 275sudo -H Compile NeoVim 276``` 277 278### Nix / NixOS 279 280Neovim can be installed with: 281``` bash 282nix-env -iA nixpkgs.neovim 283``` 284 285Or alternatively, if you use flakes: 286``` bash 287nix profile install nixpkgs#neovim 288``` 289 290### Mageia 7 291 292``` bash 293urpmi neovim 294``` 295 296To install the Python modules: 297``` bash 298urpmi python3-pynvim 299``` 300 301### makedeb Package Repository (MPR) 302 303Neovim is available inside the [MPR](https://mpr.makedeb.org/packages/neovim). You can install it with: 304 305``` bash 306git clone https://mpr.makedeb.org/neovim 307cd neovim/ 308makedeb -si 309``` 310 311### OpenSUSE 312 313Neovim can be installed with: 314``` bash 315sudo zypper in neovim 316``` 317 318To install the Python modules: 319``` bash 320sudo zypper in python-neovim python3-neovim 321``` 322 323### PLD Linux 324 325Neovim is in [PLD Linux](https://github.com/pld-linux/neovim): 326``` bash 327poldek -u neovim 328poldek -u python-neovim python3-neovim 329poldek -u python-neovim-gui python3-neovim-gui 330``` 331 332### Slackware 333 334See [neovim on SlackBuilds](https://slackbuilds.org/apps/neovim/). 335 336### Source Mage 337 338Neovim can be installed using the Sorcery package manager: 339``` bash 340cast neovim 341``` 342 343### Solus 344 345Neovim can be installed using the default package manager in Solus (eopkg): 346``` bash 347sudo eopkg install neovim 348``` 349 350### Snap 351 352Neovim nightly and stable are available on the [snap store](https://snapcraft.io/nvim). 353 354**Stable Builds** 355 356``` bash 357sudo snap install nvim --classic 358``` 359 360**Nightly Builds** 361 362``` bash 363sudo snap install --edge nvim --classic 364``` 365 366### Ubuntu 367 368As in Debian, Neovim is in [Ubuntu](https://packages.ubuntu.com/search?keywords=neovim). 369``` bash 370sudo apt install neovim 371``` 372 373Python (`:python`) support seems to be automatically installed 374``` bash 375sudo apt install python3-neovim 376``` 377 378Neovim has been added to a "Personal Package Archive" (PPA). This allows you to install it with `apt-get`. Follow the links to the PPAs to see which versions of Ubuntu are currently available via the PPA. Choose **stable** or **unstable**: 379 380- [https://launchpad.net/~neovim-ppa/+archive/ubuntu/**stable**](https://launchpad.net/~neovim-ppa/+archive/ubuntu/stable) 381- [https://launchpad.net/~neovim-ppa/+archive/ubuntu/**unstable**](https://launchpad.net/~neovim-ppa/+archive/ubuntu/unstable) 382 383**Important:** The Neovim team does not maintain the PPA packages. For problems or questions about the PPA specifically contact https://launchpad.net/~neovim-ppa. 384 385To be able to use **add-apt-repository** you may need to install software-properties-common: 386``` bash 387sudo apt-get install software-properties-common 388``` 389 390If you're using an older version Ubuntu you must use: 391``` bash 392sudo apt-get install python-software-properties 393``` 394 395Run the following commands: 396``` bash 397sudo add-apt-repository ppa:neovim-ppa/stable 398sudo apt-get update 399sudo apt-get install neovim 400``` 401 402Prerequisites for the Python modules: 403``` bash 404sudo apt-get install python-dev python-pip python3-dev python3-pip 405``` 406 407If you're using an older version Ubuntu you must use: 408``` bash 409sudo apt-get install python-dev python-pip python3-dev 410sudo apt-get install python3-setuptools 411sudo easy_install3 pip 412``` 413 414### Void-Linux 415 416Neovim can be installed using the xbps package manager 417``` bash 418sudo xbps-install -S neovim 419``` 420 421### Alpine Linux 422 423Neovim can be installed using the apk package manager 424``` bash 425sudo apk add neovim 426``` 427 428## BSD 429 430### FreeBSD 431 432Neovim can be installed using [`pkg(8)`](https://www.freebsd.org/cgi/man.cgi?query=pkg&sektion=8&n=1): 433``` bash 434pkg install neovim 435``` 436 437or [from the ports tree](https://www.freshports.org/editors/neovim/): 438``` bash 439cd /usr/ports/editors/neovim/ && make install clean 440``` 441 442To install the pynvim Python modules using [`pkg(8)`](https://www.freebsd.org/cgi/man.cgi?query=pkg&sektion=8&n=1) run: 443``` bash 444pkg install py36-pynvim 445``` 446 447### OpenBSD 448 449Neovim can be installed using [`pkg_add(1)`](https://man.openbsd.org/pkg_add): 450``` bash 451pkg_add neovim 452``` 453 454or [from the ports tree](https://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/editors/neovim/): 455``` bash 456cd /usr/ports/editors/neovim/ && make install 457``` 458 459## Android 460 461[Termux](https://github.com/termux/termux-app) offers a Neovim package. 462 463 464Install from source 465=================== 466 467If a package is not provided for your platform, you can build Neovim from source. See [BUILD.md](./BUILD.md) for details. If you have the [prerequisites](./BUILD.md#build-prerequisites) then building is easy: 468``` bash 469make CMAKE_BUILD_TYPE=Release 470sudo make install 471``` 472 473For Unix-like systems this installs Neovim to `/usr/local`, while for Windows to `C:/Program Files`. Note, however, that this can complicate uninstallation. The following example avoids this by isolating an installation under `$HOME/neovim`: 474``` bash 475rm -r build/ # clear the CMake cache 476make CMAKE_EXTRA_FLAGS= "-DCMAKE_INSTALL_PREFIX= $ HOME /neovim" 477make install 478export PATH = " $ HOME /neovim/bin: $ PATH " 479``` 480 481## Uninstall 482 483There is a CMake target to _uninstall_ after `make install`: 484 485``` bash 486sudo cmake --build build/ --target uninstall 487``` 488 489Alternatively, just delete the `CMAKE_INSTALL_PREFIX` artifacts: 490 491``` bash 492sudo rm /usr/local/bin/nvim 493sudo rm -r /usr/local/share/nvim/ 494```