Added information about alternative repositories (to get latest version) and about the update-alternatives command

This commit is contained in:
Dennis Potter 2018-05-17 20:55:02 +02:00
parent d5eba0752a
commit 48de570b12
1 changed files with 11 additions and 0 deletions

View File

@ -4,6 +4,8 @@ This repository contains my personal [neovim](https://neovim.io/) configuration
### Install neovim
On Ubuntu, with root rights, neovim can be installed through the packet manager with
```bash
sudo add-apt-repository ppa:neovim-ppa/stable
sudo apt-get update
sudo apt-get install neovim
```
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
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:
```bash