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

# See https://sipb.mit.edu/doc/safe-shell/
set -euf -o pipefail

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

if [ ! -f ~/.vimrc_local ]; then
	touch ~/.vimrc_local
fi

if [ ! -d ~/.vim/spell ]; then
	ln -s -v "$DIR"/.vim/spell ~/.vim/

	find ~/.vim/spell/ -name '*.add' | \
		xargs -I{} vim +":mkspell! {}|q" -
fi

mkdir -p ~/.vim/autoload ~/.vim/bundle ~/.vim/ftplugin

for f in "$DIR"/.vim/ftplugin/*; do
	ln -s -v -f "$f" ~/.vim/ftplugin/
done

mkdir -p ~/.vim/colors
for f in "$DIR"/.vim/colors/*; do
	ln -s -v -f "$f" ~/.vim/colors/
done

curl --silent https://raw.githubusercontent.com/tpope/vim-pathogen/master/autoload/pathogen.vim -o ~/.vim/autoload/pathogen.vim

repos="
	michaeljsmith/vim-indent-object
	othree/xml.vim
	tpope/vim-fugitive
	tpope/vim-rhubarb
	tpope/vim-surround
	tpope/vim-commentary
	tpope/vim-repeat
	cakebaker/scss-syntax.vim
	chase/vim-ansible-yaml
	groenewege/vim-less
	leafgarland/typescript-vim
	Quramy/tsuquyomi
	Shougo/vimproc.vim
	ElmCast/elm-vim
	alvan/vim-closetag
	airblade/vim-gitgutter
	vim-syntastic/syntastic
"

for repo in $repos; do
	dir=~/.vim/bundle/$(basename "$repo")

	if [ ! -d "$dir" ]; then
		git clone https://github.com/"$repo".git "$dir"
	fi<commit_msg>vim-setup.sh: no need for plugins’ git history<commit_after>#!/usr/bin/env bash

# See https://sipb.mit.edu/doc/safe-shell/
set -euf -o pipefail

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

if [ ! -f ~/.vimrc_local ]; then
	touch ~/.vimrc_local
fi

if [ ! -d ~/.vim/spell ]; then
	ln -s -v "$DIR"/.vim/spell ~/.vim/

	find ~/.vim/spell/ -name '*.add' | \
		xargs -I{} vim +":mkspell! {}|q" -
fi

mkdir -p ~/.vim/autoload ~/.vim/bundle ~/.vim/ftplugin

for f in "$DIR"/.vim/ftplugin/*; do
	ln -s -v -f "$f" ~/.vim/ftplugin/
done

mkdir -p ~/.vim/colors
for f in "$DIR"/.vim/colors/*; do
	ln -s -v -f "$f" ~/.vim/colors/
done

curl --silent https://raw.githubusercontent.com/tpope/vim-pathogen/master/autoload/pathogen.vim -o ~/.vim/autoload/pathogen.vim

repos="
	michaeljsmith/vim-indent-object
	othree/xml.vim
	tpope/vim-fugitive
	tpope/vim-rhubarb
	tpope/vim-surround
	tpope/vim-commentary
	tpope/vim-repeat
	cakebaker/scss-syntax.vim
	chase/vim-ansible-yaml
	groenewege/vim-less
	leafgarland/typescript-vim
	Quramy/tsuquyomi
	Shougo/vimproc.vim
	ElmCast/elm-vim
	alvan/vim-closetag
	airblade/vim-gitgutter
	vim-syntastic/syntastic
"

for repo in $repos; do
	dir=~/.vim/bundle/$(basename "$repo")

	if [ ! -d "$dir" ]; then
		git clone --depth=1 https://github.com/"$repo".git "$dir"
	fi
{'fraction_non_alphanumeric': 0.19640765326044513, 'fraction_numerical': 0.0011714174150722373, 'mean_word_length': 3.0796178343949046, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '6045342', 'n_tokens_mistral': 1222, 'n_tokens_neox': 1124, 'n_words': 226}