Skip to content

Instantly share code, notes, and snippets.

@pleasemarkdarkly
Last active November 20, 2020 08:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pleasemarkdarkly/14722c71c1a1b8dffce6f19f3e147374 to your computer and use it in GitHub Desktop.
Save pleasemarkdarkly/14722c71c1a1b8dffce6f19f3e147374 to your computer and use it in GitHub Desktop.
Super easy way to go from "What's vim?" to a super full featured set up for js, ts, and editing anywhere.
#!/bin/bash
# Spacevim installer - https://gist.github.com/14722c71c1a1b8dffce6f19f3e147374
# wget -O - https://bit.ly/3mfUJmk | bash
# Spacevim install with config
# includes typescript stuff, dotfiles, spreadsheet
# have a suggestion or addition, let me know
function config () {
wget -O ~/.SpaceVim.d/init.toml https://bit.ly/3jrzVGM
}
function vimproc () {
cd
git clone https://github.com/Shougo/vimproc.vim
cd vimproc.vim
make
}
function install_vim(){
cd
git clone https://github.com/vim/vim
cd vim
cat ./READMEdir/README_mac.txt
make && sudo make install
}
function run_linux () {
echo "Linux ready to party."
install_vim
vimproc
cp -v ./lib/vimproc_linux64.so $HOME/.SpaceVim/bundle/vimproc.vim/lib/vimproc_linux64.so
}
function run_macos () {
echo "MacOS ready to party."
install_vim
vimproc
cp -v ./lib/vimproc_mac.so $HOME/.SpaceVim/bundle/vimproc.vim/lib/vimproc_macos.so
}
function run_cygwin () {
echo "Cygwin ready to party."
echo "Hope it works out"
vimproc
cp -v ./lib/vimproc_linux64.so $HOME/.SpaceVim/bundle/vimproc.vim/lib/vimproc_linux64.so
}
function run_windows () {
echo "Windows not ready to party."
echo "Sorry"
}
function run_freebsd () {
echo "FreeBSD ready to party."
echo "Sorry"
}
function run_confused () {
echo "Unknown OS, no party here."
echo "You are special"
}
echo "spacevim install"
echo "readme: curl -sLf https://spacevim.org/install.sh | bash -s -- -h"
curl -sLf https://spacevim.org/install.sh | bash
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
run_linux
elif [[ "$OSTYPE" == "darwin"* ]]; then
run_macos
elif [[ "$OSTYPE" == "cygwin" ]]; then
# POSIX compatibility layer and Linux environment emulation for Windows
run_cygwin
elif [[ "$OSTYPE" == "msys" ]]; then
# Lightweight shell and GNU utilities compiled for Windows (part of MinGW)
run_windows
elif [[ "$OSTYPE" == "freebsd"* ]]; then
run_freebsd
else
run_confused
fi
echo "learn more about spacevim here: https://spacevim.org/documentation"
echo "and https://github.com/Gabirel/Hack-SpaceVim"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment