<commit_before>" Syntax highlighting
set t_Co=256
if has('syntax')
	syntax on
	colorscheme jellybeans
endif

" Split in the correct direction
set splitbelow
set splitright

" Mouse support
if has('mouse')
	set mouse=a
	set mousehide
endif

" Map Y to act like D and C: yank to EOL
map Y y$

" When moving up/down, go visually, not by line
map j gj
map k gk

" I accidentally do these commands more than I would ever use them
nnoremap K <nop>
nnoremap Q <nop>

" :W == :w
cnoreabbrev W w

" 0 is ^
noremap 0 ^

" Restore previous cursor position
if has('autocmd')
	au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
endif

" Searching
set ignorecase    " Ignore case when searching...
set smartcase     " ...unless there are caps.
set incsearch     " Incremental search
set hlsearch      " Highlight matches
set gdefault      " Assume global search

" One space instead of two
set nojoinspaces

" Fix backspace on Windows
set backspace=2

" Undo level
set ul=1000

" Save undo history
if has('undodir')
	set undodir=~/.vim/backups
endif
if has('undofile')
	set undofile
endif

" Let us make our commands beautiful
set wildmenu
set wildmode=list:longest,full

" Timeout on multi-key stuff
set ttimeout
set ttimeoutlen=50

" gvim
if has('gui_running')

	" Font
	set guifont=Source\ Code\ Pro:h14
	set antialias

	" Hide toolbar
	set guioptions-=T

	" Hide scrollbars on both sides
	set guioptions-=r
	set guioptions-=L

  " Cursor stuff
  highlight Cursor guifg=black guibg=grey
  set guicursor=n-c-v:block-Cursor-blinkon0
  set guicursor+=i:ver10-Cursor

endif

" MacVim
if has('gui_macvim')

	" Switch between tabs with cmd - #
	noremap <D-1> 1gt
	noremap <D-2> 2gt
	noremap <D-3> 3gt
	noremap <D-4> 4gt
	noremap <D-5> 5gt
	noremap <D-6> 6gt
	noremap <D-7> 7gt
	noremap <D-8> 8gt
	noremap <D-9> 9gt
	inoremap <D-1> <esc>1gt
	inoremap <D-2> <esc>2gt
	inoremap <D-3> <esc>3gt
	inoremap <D-4> <esc>4gt
	inoremap <D-5> <esc>5gt
	inoremap <D-6> <esc>6gt
	inoremap <D-7> <esc>7gt
	inoremap <D-8> <esc>8gt
	inoremap <D-9> <esc>9gt

endif

" Show line numbers
set number

" Show matching bracket when you hover on one
set showmatch

" Soft wrap by word
set wrap
set linebreak
set textwidth=0
set wrapmargin=0

" Scroll 4 lines away from margins
set scrolloff=4

" Tabs and EOLs should look like TextMate, but should be hidden by default
set nolist
set listchars=tab:▸\ ,eol:¬,trail:·

" Open new buffers in new tabs
set switchbuf=usetab,newtab

" Make sure the line height is 1 line, not some other madness
set linespace=1

" Statusline
if has('statusline')
	set statusline=\ %F        " Filename + is modified
	set statusline+=\ %m       " Has the file been modified?
	set statusline+=\ %r       " Is the file read-only?
	set statusline+=\ %h       " Is this a help file?
	set statusline+=%=         " Separator
	set statusline+=%c,\       " What column number?
	set statusline+=%l/%L\     " How far into the file are we?
	set laststatus=1           " Show the statusline in 2+ windows
endif

" English language and no spellchecking by default
if has('spell')
	silent! language messages "en"
	set langmenu=none
	set spl=en spell
	set nospell
endif

" No error bells nor visual alerts
set noerrorbells
set visualbell t_vb=

" Return to normal mode when focus is lost
if has('autocmd')
	au FocusLost * call feedkeys("\<C-\>\<C-n>")
endif
<commit_msg>minor retab in vimrc<commit_after>" Syntax highlighting
set t_Co=256
if has('syntax')
	syntax on
	colorscheme jellybeans
endif

" Split in the correct direction
set splitbelow
set splitright

" Mouse support
if has('mouse')
	set mouse=a
	set mousehide
endif

" Map Y to act like D and C: yank to EOL
map Y y$

" When moving up/down, go visually, not by line
map j gj
map k gk

" I accidentally do these commands more than I would ever use them
nnoremap K <nop>
nnoremap Q <nop>

" :W == :w
cnoreabbrev W w

" 0 is ^
noremap 0 ^

" Restore previous cursor position
if has('autocmd')
	au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
endif

" Searching
set ignorecase    " Ignore case when searching...
set smartcase     " ...unless there are caps.
set incsearch     " Incremental search
set hlsearch      " Highlight matches
set gdefault      " Assume global search

" One space instead of two
set nojoinspaces

" Fix backspace on Windows
set backspace=2

" Undo level
set ul=1000

" Save undo history
if has('undodir')
	set undodir=~/.vim/backups
endif
if has('undofile')
	set undofile
endif

" Let us make our commands beautiful
set wildmenu
set wildmode=list:longest,full

" Timeout on multi-key stuff
set ttimeout
set ttimeoutlen=50

" gvim
if has('gui_running')

	" Font
	set guifont=Source\ Code\ Pro:h14
	set antialias

	" Hide toolbar
	set guioptions-=T

	" Hide scrollbars on both sides
	set guioptions-=r
	set guioptions-=L

	" Cursor stuff
	highlight Cursor guifg=black guibg=grey
	set guicursor=n-c-v:block-Cursor-blinkon0
	set guicursor+=i:ver10-Cursor

endif

" MacVim
if has('gui_macvim')

	" Switch between tabs with cmd - #
	noremap <D-1> 1gt
	noremap <D-2> 2gt
	noremap <D-3> 3gt
	noremap <D-4> 4gt
	noremap <D-5> 5gt
	noremap <D-6> 6gt
	noremap <D-7> 7gt
	noremap <D-8> 8gt
	noremap <D-9> 9gt
	inoremap <D-1> <esc>1gt
	inoremap <D-2> <esc>2gt
	inoremap <D-3> <esc>3gt
	inoremap <D-4> <esc>4gt
	inoremap <D-5> <esc>5gt
	inoremap <D-6> <esc>6gt
	inoremap <D-7> <esc>7gt
	inoremap <D-8> <esc>8gt
	inoremap <D-9> <esc>9gt

endif

" Show line numbers
set number

" Show matching bracket when you hover on one
set showmatch

" Soft wrap by word
set wrap
set linebreak
set textwidth=0
set wrapmargin=0

" Scroll 4 lines away from margins
set scrolloff=4

" Tabs and EOLs should look like TextMate, but should be hidden by default
set nolist
set listchars=tab:▸\ ,eol:¬,trail:·

" Open new buffers in new tabs
set switchbuf=usetab,newtab

" Make sure the line height is 1 line, not some other madness
set linespace=1

" Statusline
if has('statusline')
	set statusline=\ %F        " Filename + is modified
	set statusline+=\ %m       " Has the file been modified?
	set statusline+=\ %r       " Is the file read-only?
	set statusline+=\ %h       " Is this a help file?
	set statusline+=%=         " Separator
	set statusline+=%c,\       " What column number?
	set statusline+=%l/%L\     " How far into the file are we?
	set laststatus=1           " Show the statusline in 2+ windows
endif

" English language and no spellchecking by default
if has('spell')
	silent! language messages "en"
	set langmenu=none
	set spl=en spell
	set nospell
endif

" No error bells nor visual alerts
set noerrorbells
set visualbell t_vb=

" Return to normal mode when focus is lost
if has('autocmd')
	au FocusLost * call feedkeys("\<C-\>\<C-n>")
endif

{'fraction_non_alphanumeric': 0.09812324516033694, 'fraction_numerical': 0.018324220481749667, 'mean_word_length': 3.6040816326530614, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 67, 'https://': 0, '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': '746017', 'n_tokens_mistral': 2615, 'n_tokens_neox': 2480, 'n_words': 911}