[install] checks for vim and installs plugins

This commit is contained in:
Josh Sherman 2017-08-08 11:50:07 -05:00
parent 8b0c00e621
commit cf11fb627a
No known key found for this signature in database
GPG key ID: 55B058A80530EF22

11
install
View file

@ -25,9 +25,6 @@ rm -rf \
$HOME/.vim \
$HOME/.zshrc
curl -fLo $DOTFILES/vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
ln -s $DOTFILES/gemrc $HOME/.gemrc
ln -s $DOTFILES/gitconfig $HOME/.gitconfig
ln -s $DOTFILES/vendor/nitso/colour-mysql-console/.grcat $HOME/.grcat
@ -38,6 +35,14 @@ ln -s $DOTFILES/vim $HOME/.vim
ln -s $DOTFILES/vim $HOME/.config/nvim
ln -s $DOTFILES/zshrc $HOME/.zshrc
curl -fLo $DOTFILES/vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
if [ -x "$(command -v nvim)" ]; then VIM=nvim
elif [ -x "$(command -v vim)" ]; then VIM=vim; fi
if [ -n "$VIM" ]; then /usr/bin/env $VIM +PlugInstall +qa; fi
if [[ `uname` == 'Darwin' ]]; then
defaults write com.apple.dock autohide-delay -float 86400; killall Dock
defaults write -g ApplePressAndHoldEnabled -bool false