加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

vim with space-vim

发布时间:2020-12-15 22:40:34 所属栏目:安全 来源:网络整理
导读:space-vimhttps://github.com/liuchengxu/space-vimmacOS# homebrew/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"# macvimbrew install macvimbrew link macvim# space-vimbrew install fzf rg agba
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%System32WindowsPowerShellv1.0powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString(‘https://chocolatey.org/install.ps1‘))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%chocolateybin"
# 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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读