Neovim setting

9/16/2021 vim

# Install neovim

$ sudo apt-get install software-properties-common
$ sudo add-apt-repository ppa:neovim-ppa/stable
$ sudo apt-get update
$ sudo apt-get install neovim
1
2
3
4

# Prepare config folder

$ wget https://raw.githubusercontent.com/huutrinh68/my_nvim/master/config/nvim/init.vim
$ mkdir -p ~/.config/nvim/
$ mv init.vim ~/.config/nvim/init.vim
1
2
3

# Install pluginstall

$ sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
       https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
$ nvim
# type :PlugInstall
1
2
3
4
$ wget https://github.com/sharkdp/fd/releases/download/v7.3.0/fd-musl_7.3.0_amd64.deb
$ sudo dpkg -i fd-musl_7.3.0_amd64.deb
$ mv dpkg -i fd-musl_7.3.0_amd64.deb
1
2
3

# Install grep

$ curl -LO https://github.com/BurntSushi/ripgrep/releases/download/0.8.1/ripgrep_0.8.1_amd64.deb
$ sudo dpkg -i ripgrep_0.8.1_amd64.deb && rm ripgrep_0.8.1_amd64.deb
1
2

# Create alias for nvim

$ echo "alias vim='nvim'" >> ~/.bashrc
$ source ~/.bashrc
1
2
Last Updated: 10/2/2021, 8:49:39 AM