- You could download sheng_vimrc and paste its context to
~/.vimrc
- (basic packages) Download Vim-plug and follow the instructions at link
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
and then vim ~/.vimrc
:PlugInstall
:PlugUpdate
and then
source ~/.vimrc
- (coc.nvim package) If you could install
nodejs
follow this link. If you cannot installnodejs
please use nvm as follows:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
- After the installation, you may need to close and reopen your terminal, or you can run the following to make
nvm
available in the current session:
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
- Once installed, verify the installation with:
nvm --version
- (coc.nvim package) Then, restart your terminal or server. And then,
nvm install node
nvm install 14.17.0
- (coc.nvim package) Get into the
~/.vimrc
and add
Plug 'neoclide/coc.nvim', {'branch': 'release'}
- Finally, execute the following command in
~/.vimrc
:
:PlugInstall
:PlugUpdate
After installing the coc.nvim
, you gotta change the config in ~/.vimrc
. You can find the example in this link. But I haven't added this part into my '~/.vimrc'. I gotta deal with some redundant parts (ex. remove ctags configs) and conflict isses to merge it.