<commit_before>#!/bin/bash
set -e

dotfiles=$HOME/.dotfiles
source $dotfiles/script/helper.sh

if [ "$OS" == "darwin" ]; then
  brew install macvim --override-system-vim
elif [ "$OS" == "linux" ]; then
  sudo apt-get install vim-gnome -y
fi

ln -fs $dotfiles/vim ~/.vim
ln -fs $dotfiles/vimrc ~/.vimrc
mkdir -p ~/.vim/{.backup,.swap}

if [ ! -d "$HOME/.vim/bundle/Vundle.vim" ]; then
  echo '==> Installing vundle'
  git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
fi

echo '==> Installing vim plugins'
vim +PluginInstall +qall
<commit_msg>Fix symbolic link for vimrc<commit_after>#!/bin/bash
set -e

dotfiles=$HOME/.dotfiles
source $dotfiles/script/helper.sh

if [ "$OS" == "darwin" ]; then
  brew install macvim --override-system-vim
elif [ "$OS" == "linux" ]; then
  sudo apt-get install vim-gnome -y
fi

ln -fs $dotfiles/vim ~/.vim
ln -fs $dotfiles/vim/vimrc ~/.vimrc
mkdir -p ~/.vim/{.backup,.swap}

if [ ! -d "$HOME/.vim/bundle/Vundle.vim" ]; then
  echo '==> Installing vundle'
  git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
fi

echo '==> Installing vim plugins'
vim +PluginInstall +qall

{'fraction_non_alphanumeric': 0.18017241379310345, 'fraction_numerical': 0.0, 'mean_word_length': 3.53515625, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1250344', 'n_tokens_mistral': 479, 'n_tokens_neox': 440, 'n_words': 112}