Skip to content

hhktony/x-vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

x-vim: Tony Xu's Vim Configuration

                _
__  __   __   _(_)_ __ ___
\ \/ /___\ \ / / | '_ ` _ \
 >  <_____\ V /| | | | | | |
/_/\_\     \_/ |_|_| |_| |_|

Requirements

Installation

Dependency

# CentOS
sudo yum groupinstall 'Development Tools'
sudo yum install epel-release
sudo yum install -y git fzf ctags cscope the_silver_searcher

# Ubuntu
sudo apt install -y git fzf ctags silversearcher-ag

# MacOS
brew install git fzf ag bat cscope ctags

Install node

git clone https://github.com/nvm-sh/nvm.git ~/.nvm
cd ~/.nvm && git checkout v0.39.7

# 添加环境变量到 ~/.bashrc
if [ -d "$HOME/.nvm" ];then
  export NVM_NODEJS_ORG_MIRROR="http://npm.taobao.org/mirrors/node"
  export NVM_DIR="$HOME/.nvm"
  [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"  # This loads nvm
  [ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion"
fi

source ~/.bashrc

nvm install v18.19.0
nvm alias default v18.19.0
npm config set registry https://registry.npm.taobao.org

Install x-vim

git clone https://github.com/hhktony/x-vim.git ~/.vim
cd ~/.vim/ && ./install.sh

Programing Language [Option]

Python

pip install pytest ruff pynvim

C/C++

# MacOS
brew install ccls

Go

go install golang.org/x/tools/gopls@latest

bash

npm i -g bash-language-server

Key-mappings

Key Mode Action
,+gd 𝐍 coc-definition

coc.nvim

Command

:CocInstall coc-omni
:CocInstall coc-omni@1.0.0
:CocUninstall coc-omni
:CocList extensions
:CocList marketplace
:CocList maps
:CocCommand explorer

Debug

export NVIM_COC_LOG_LEVEL=debug && export NVIM_COC_LOG_FILE=/tmp/coc.log

Other

View currently loaded plug-ins

echo keys(g:plugs)

More