<commit_before>"source /home/czipperz/dotfiles/plugins.vim
"EVERYTHING ELSE FOLLOWS"

" Don't use Ex mode, use Q for formatting
map Q gq
" Need those line numbers
function! NumberToggle()
	if(&relativenumber == 1)
		set norelativenumber
		set number
		highlight LineNr ctermfg=red
	else
		set relativenumber
		set number
		highlight LineNr ctermfg=yellow
	endif
endfunc
call NumberToggle()
nnoremap \ :call NumberToggle()<cr>

highlight Search ctermbg=Yellow ctermfg=Black

highlight ExtraWhitespace ctermbg=red guibg=red
autocmd BufWinEnter * call clearmatches()
autocmd BufWinLeave * call clearmatches()
autocmd InsertLeave * call clearmatches()
autocmd InsertEnter * match ExtraWhitespace /\s\+$\| \+\ze\t\|\t/

"filetype plugin on

" CTRL-U in insert mode deletes a lot.  Use CTRL-G u to first break undo,
" so that you can undo CTRL-U after inserting a line break.
inoremap <C-U> <C-G>u<C-U>
" Sets all temporary and backup files all in one place
set backup
set backupdir=~/.vim/backup
set directory=~/.vim/tmp
" Sets how many lines of history VIM has to remember
set history=700
" Always show current position
set ruler
set hid
" Good search routines (highlight and incremental)<commit_msg>Made absolute line numbers default and readded plugins<commit_after>source /home/czipperz/dotfiles/plugins.vim
"EVERYTHING ELSE FOLLOWS"

" Don't use Ex mode, use Q for formatting
map Q gq
" Need those line numbers
function! NumberToggle()
	if(&relativenumber == 1)
		set norelativenumber
		set number
		highlight LineNr ctermfg=red
	else
		set relativenumber
		set number
		highlight LineNr ctermfg=yellow
	endif
endfunc
set number
nnoremap \ :call NumberToggle()<cr>

highlight Search ctermbg=Yellow ctermfg=Black

highlight ExtraWhitespace ctermbg=red guibg=red
autocmd BufWinEnter * call clearmatches()
autocmd BufWinLeave * call clearmatches()
autocmd InsertLeave * call clearmatches()
autocmd InsertEnter * match ExtraWhitespace /\s\+$\| \+\ze\t\|\t/

"filetype plugin on

" CTRL-U in insert mode deletes a lot.  Use CTRL-G u to first break undo,
" so that you can undo CTRL-U after inserting a line break.
inoremap <C-U> <C-G>u<C-U>
" Sets all temporary and backup files all in one place
set backup
set backupdir=~/.vim/backup
set directory=~/.vim/tmp
" Sets how many lines of history VIM has to remember
set history=700
" Always show current position
set ruler
set hid
" Good search routines (highlight and incremental)
{'fraction_non_alphanumeric': 0.07882789929839043, 'fraction_numerical': 0.0033016921172100704, 'mean_word_length': 4.690140845070423, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '39302', 'n_tokens_mistral': 860, 'n_tokens_neox': 783, 'n_words': 296}