vim with space-vim

space-vim
https://github.com/liuchengxu/space-vim

macOS
# homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# macvim
brew install macvim
brew link macvim
# space-vim
brew install fzf rg ag
bash <(curl -fsSL https://raw.githubusercontent.com/liuchengxu/space-vim/master/install.sh)
# run macvim
mvim

linux
# linuxbrew
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
test -d ~/.linuxbrew && eval $(~/.linuxbrew/bin/brew shellenv)
test -d /home/linuxbrew/.linuxbrew && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
test -r ~/.bash_profile && echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.bash_profile
echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.profile
# vim
brew install vim
# space-vim
brew install fzf rg ag
bash <(curl -fsSL https://raw.githubusercontent.com/liuchengxu/space-vim/master/install.sh)

Windows
# chocolatey (cmd)
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
# chocolatey (powershell)
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
# vim and tools
choco install -y vim git fzf rg ag curl wget sudo
# vim-plug (git-bash)
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
# space-vim (git-bash)
cd ~
git clone --depth 1 https://github.com/liuchengxu/space-vim.git ~/.space-vim
ln -s ~/.space-vim/init.vim ~/.vimrc
cp ~/.space-vim/init.spacevim ~/.spacevim
# open gvim (note: not vim in git-bash)
# input command to install plugins
:PlugInstall
# fix menubar chars to english
:e ~/.vimrc
# append to last line
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim

猜你喜欢

转载自www.cnblogs.com/Bob-wei/p/10658348.html
Vim