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

source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/../util.sh"

function install() {
  [[ -d ~/.vim/.git ]] && exit 0

  backup .vim/
  backup .vimrc

  git clone https://github.com/jkeylu/vim.x.git ~/.vim
  bash ~/.vim/install.sh
}

[[ 0 = $# || "-i" = $1 ]] && install && exit 0
<commit_msg>update vim.sh<commit_after>#!/usr/bin/env bash

source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/../util.sh"

function install() {
  [[ -d ~/.vim/.git ]] && exit 0

  backup .vim/
  backup .vimrc

  git clone https://github.com/jkeylu/vim.x.git ~/.vim
  bash ~/.vim/install.sh
}

function install_lite() {
  cat > ~/.vimrc <<EOF
let mapleader = ','
colorscheme desert
imap jj <Esc>`^
nmap <leader>nt :Explore<CR>
nmap <leader>q :bd<CR>
EOF
}

[[ 0 = $# || "-i" = $1 ]] && install && exit 0
[[ "-l" = $1 ]] && install_lite && exit 0

{'fraction_non_alphanumeric': 0.24395857307249713, 'fraction_numerical': 0.01380897583429229, 'mean_word_length': 2.9726027397260273, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 9, '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': '3043999', 'n_tokens_mistral': 394, 'n_tokens_neox': 353, 'n_words': 83}