码迷,mamicode.com
首页 > 系统相关 > 详细

vim with space-vim

时间:2019-04-05 14:20:12      阅读:211      评论:0      收藏:0      [点我收藏+]

标签:amp   tools   append   http   users   mac   last   with   cut   

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

 

vim with space-vim

标签:amp   tools   append   http   users   mac   last   with   cut   

原文地址:https://www.cnblogs.com/Bob-wei/p/10658348.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!