Skip to content
Charles Chiu edited this page Oct 14, 2022 · 9 revisions

ERROR: Locale does not support UTF 8. Unicode characters may not display correctly.

To fix above error, put below lines in your ~/.bashrc.

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

Reference

Set nvim as default editor

If you want to use Neovim for some (or all) of the editor alternatives, use the following commands:

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

or

In .bashrc:

alias vim='nvim'
export EDITOR='nvim'

※ NOTE: However, some special interfaces, like view for nvim -R, are not supported. See neovim/#1646 & neovim/#2008 for more info.

Clone this wiki locally