[install] checks for vim and installs plugins
This commit is contained in:
parent
8b0c00e621
commit
cf11fb627a
1 changed files with 8 additions and 3 deletions
11
install
11
install
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue