/vimrc

Primary LanguageVim Script

oh-my-vim

setup

install neovim

Centos7

cd ~/tmp
git clone -b stable https://github.com/neovim/neovim
cd neovim
make CMAKE_BUILD_TYPE=RelWithDebInfo CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX=$HOME/opt/neovim"
make install
export PATH="$HOME/opt/neovim/bin:$PATH"

macOS

brew install neovim

setup vimrc

# https://github.com/junegunn/vim-plug#unix-linux
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'
git clone git@github.com:slowmoyang/vimrc.git ~/config/vimrc
mkdir -vp ~/.vim/tmp/undo

install plugins

PlugInstall

install language servers

CocInstall coc-pyright
CocInstall coc-snippets
CocInstall coc-vimtex
CocInstall coc-clangd

Tips

Terminal