Last active
December 17, 2015 05:48
-
-
Save ephesus/5560071 to your computer and use it in GitHub Desktop.
Install IOS plugins (to simulate XCode) for vim with Janus to help os x development
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# assumes installed janus https://github.com/carlhuda/janus | |
#install vim with homebrew | |
brew install macvim --override-system-vim --with-python3 | |
ln -s /usr/local/bin/mvim /usr/local/bin/vim | |
#make sure /usr/local/bin is before /usr/bin in $PATH | |
echo "let mapleader = \",\"" >> .vimrc.before | |
echo "imap jj <esc>" >> ~/.vimrc.after | |
echo "imap hh =>" >> ~/.vimrc.after | |
mkdir ~/.janus | |
cd ~/.janus | |
#make ~/.janus a git repo | |
git init | |
git submodule init | |
#install gnupg.vim as example customization | |
mkdir -p gnupg/plugin | |
curl http://www.vim.org/scripts/download_script.php?src_id=18070 > ~/.janus/gnupg/plugin/gnupg.vim | |
echo "GPG_TTY=`tty`" >> ~/.bash_profile | |
echo "export GPG_TTY" >> ~/.bash_profile | |
git add . | |
git commit -a -s -v -m "install gnupg.vim" | |
cd ~/.janus | |
#install clang_complete | |
git submodule add https://github.com/Rip-Rip/clang_complete.git | |
#install ios.vim | |
git submodule add https://github.com/eraserhd/vim-ios.git | |
#install kiwi.vim | |
git submodule add git://github.com/eraserhd/vim-kiwi.git | |
git submodule update --init |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment