I want to install neovim-gtk, but it needs neovim version >= 0.2.2 while on my computer (debian linux v9.3) its version is still 0.1.7, so i have to install from git.
Here's what I do:
Thank you for reading, your feedback is awaited.
Here's what I do:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install neovim from source / git in debian linux | |
# Build prerequisites | |
$ sudo apt install ninja-build libtool libtool-bin autoconf automake cmake g++ pkg-config unzip | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
autoconf is already the newest version (2.69-10). | |
automake is already the newest version (1:1.15-6). | |
cmake is already the newest version (3.7.2-1). | |
g++ is already the newest version (4:6.3.0-4). | |
libtool is already the newest version (2.4.6-2). | |
pkg-config is already the newest version (0.29-4+b1). | |
unzip is already the newest version (6.0-21). | |
unzip set to manually installed. | |
The following NEW packages will be installed: | |
libtool-bin ninja-build | |
0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded. | |
Need to get 523 kB of archives. | |
After this operation, 1,034 kB of additional disk space will be used. | |
# I remove the ninja-build because it generated an error when it was used, | |
# it looks like there is a missing configuration file | |
$ sudo apt remove ninja-build | |
$ mkdir ~/neovim && cd $_ | |
$ git clone https://github.com/neovim/neovim && cd $_ | |
# I prefer /opt as a non-deb package installation path to make maintenance easier | |
$ make CMAKE_BUILD_TYPE=Release CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX=/opt/neovim" | |
$ sudo make install | |
$ sudo ln -s /opt/neovim/bin/nvim /usr/bin/nvim | |
$ sudo ln -s /opt/neovim/share/applications/nvim.desktop /usr/share/applications/nvim.desktop | |
$ sudo ln -s /opt/neovim/share/pixmaps/nvim.png /usr/share/icons/nvim.png | |
# to run neovim | |
$ nvim | |
# to quit vim/neovim without saving data, type | |
:q! | |
# to save data then quit vim/neovim, type | |
:wq | |
# attaention! nearly every command / shotcut in vim/neovim start by typing ':' | |
# tutorial for newbie | |
$ vimtutor |
Thank you for reading, your feedback is awaited.
How to install neovim from git
Reviewed by Opoel34
on
3/01/2018 06:49:00 AM
Rating:

Tidak ada komentar: