/vim

vimrc (include linux and MS-windows)

Primary LanguageVim Script

VIM Configuration

Prepare

Install fzf

Linux

git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install

Mac

brew install fzf
$(brew --prefix)/opt/fzf/install

Install node

Install nvm

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash

Install latest release of node

export NVM_NODEJS_ORG_MIRROR=http://npm.taobao.org/mirrors/node
nvm install node

Link .vimrc file

ln -s $(pwd)/.vimrc ~/.vimrc

Start VIM

First start to init the plug

vim

Install coc.nvim Plugin

ln -s $(pwd)/coc-settings.json ~/.vim/coc-settings.json
alias nvm_mirror='npm_config_registry=http://registry.npm.taobao.org/ SASS_BINARY_SITE=https://npm.taobao.org/mirrors/node-sass/'
nvm_mirror vim
# :CocInstall coc-json coc-tsserver coc-pyright

Update .vimrc

vim -u DEFAULTS ~/.vimrc

Install Powerline fonts

# Change fonts in the iTerm2 Profiles -> Text -> Font
brew install svn
brew install --cask homebrew/cask-fonts/font-dejavu-sans-mono-for-powerline

Others

  • .vimrc is for Linux/Mac
  • .vimperatorrc is for Firefox plugin vimperator
  • Plugins manage: vim-plug