Skip to content

yushengsu-thu/hack-vimrc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 

Repository files navigation

Hack your personal vim

  • You could download sheng_vimrc and paste its context to ~/.vimrc

Requirent

  • (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 install nodejs 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

Install packages

  • (coc.nvim package) Get into the ~/.vimrc and add
Plug 'neoclide/coc.nvim', {'branch': 'release'}
  • Finally, execute the following command in ~/.vimrc:
:PlugInstall
:PlugUpdate

Note that:

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.

About

my vim configure

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published