Added information about alternative repositories (to get latest version) and about the update-alternatives command
This commit is contained in:
parent
d5eba0752a
commit
48de570b12
11
README.md
11
README.md
@ -4,6 +4,8 @@ This repository contains my personal [neovim](https://neovim.io/) configuration
|
|||||||
### Install neovim
|
### Install neovim
|
||||||
On Ubuntu, with root rights, neovim can be installed through the packet manager with
|
On Ubuntu, with root rights, neovim can be installed through the packet manager with
|
||||||
```bash
|
```bash
|
||||||
|
sudo add-apt-repository ppa:neovim-ppa/stable
|
||||||
|
sudo apt-get update
|
||||||
sudo apt-get install neovim
|
sudo apt-get install neovim
|
||||||
```
|
```
|
||||||
or with the AppImage
|
or with the AppImage
|
||||||
@ -56,6 +58,15 @@ Since you don't want to use Vi(m) anymore after you setup this awesome environme
|
|||||||
```bash
|
```bash
|
||||||
alias vi='nvim'
|
alias vi='nvim'
|
||||||
```
|
```
|
||||||
|
If you want to use Neovim for some (or all) of the editor alternatives, use the following commands:
|
||||||
|
```bash
|
||||||
|
sudo update-alternatives --install /usr/bin/vi vi /usr/bin/nvim 60
|
||||||
|
sudo update-alternatives --config vi
|
||||||
|
sudo update-alternatives --install /usr/bin/vim vim /usr/bin/nvim 60
|
||||||
|
sudo update-alternatives --config vim
|
||||||
|
sudo update-alternatives --install /usr/bin/editor editor /usr/bin/nvim 60
|
||||||
|
sudo update-alternatives --config editor
|
||||||
|
```
|
||||||
|
|
||||||
Then, clone the repository into you local `~/.config/nvim` directory, using:
|
Then, clone the repository into you local `~/.config/nvim` directory, using:
|
||||||
```bash
|
```bash
|
||||||
|
Loading…
Reference in New Issue
Block a user