<commit_before>#!/usr/bin/env bash

set -o errexit
set -o nounset

parentdir=$(cd $(dirname "$0")/..; pwd)

echo "== VIM configuration"
echo "=== The vim you have is the following: "
vim --version | head -1

echo "=== Installing vim configuration (vimrc and vim folder from $parentdir)"
mv ~/.vimrc ~/.vim /tmp/ || true

ln -s $parentdir/vim ~/.vim
ln -s ~/.vim/vimrc.vim ~/.vimrc

echo "=== Installing vim plugins (using neobundle)"
vim +NeoBundleInstall +qall<commit_msg>vim: enhance vim install<commit_after>#!/usr/bin/env bash

set -o errexit
set -o nounset

readonly CURRENT_DIR=$(cd $(dirname "$0"); pwd)

echo "== VIM configuration"
echo "=== Vim current version is the following (make sure is >=7.4): "
vim --version | head -1

echo "Make sure you have installed the following dependencies:
Powerline fonts: https://github.com/powerline/fonts
Ag silver searcher: https://github.com/ggreer/the_silver_searcher"

readonly TARGET_VIM_DIR="$HOME/.vim"
readonly TARGET_VIMRC="$HOME/.vimrc"

echo "=== Installing vim configuration (vim folder from $CURRENT_DIR)"
mv "$TARGET_VIMRC" "$TARGET_VIM_DIR" /tmp/ || true

ln -s "$CURRENT_DIR" "$TARGET_VIM_DIR"
ln -s "$TARGET_VIM_DIR/vimrc.vim" "$TARGET_VIMRC"

echo "=== Installing vim plugins (using neobundle)"
vim +NeoBundleInstall +qall


# TODO: https://github.com/mutewinter/dot_vim
# https://github.com/nathanaelkane/vim-indent-guides
# add NeoVim install
{'fraction_non_alphanumeric': 0.14985795454545456, 'fraction_numerical': 0.004261363636363636, 'mean_word_length': 4.636, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 4, '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': '454843', 'n_tokens_mistral': 529, 'n_tokens_neox': 497, 'n_words': 148}