<commit_before>" don't want to see tab chars or trailing whitespace
set nolist


" happy folding
function! FoldText()
    let first = getline(v:foldstart)
    let last  = substitute(getline(v:foldend), '^\s\+', '', '')
    let total = v:foldend - v:foldstart
    return first.'  ('.total.' lines)  '.last
endfunction

set foldtext=FoldText()
set foldmethod=syntax
set foldlevel=1
set foldminlines=2
set fillchars=fold:\ 

map <Space> za
map <S-Space> zR

" Don't screw up folds when inserting text that might affect them, until
" leaving insert mode. Foldmethod is local to the window. Protect against
" screwing up folding when switching between windows.
" http://vim.wikia.com/wiki/Keep_folds_closed_while_inserting_text
autocmd InsertEnter * if !exists('w:last_fdm') | let w:last_fdm=&foldmethod | setlocal foldmethod=manual | endif
autocmd InsertLeave,WinLeave * if exists('w:last_fdm') | let &l:foldmethod=w:last_fdm | unlet w:last_fdm | endif



"function! CDToDirectory()
"  let ft = exec('set ft')
"  echo ft
"  if ft == 'filetype=netrw'
"    echo 'HERE'
"  endif
"endfunction
"autocmd VimEnter * call CDToDirectory()
<commit_msg>update Adam's config<commit_after>" happy folding
function! FoldText()
    let first = getline(v:foldstart)
    let last  = substitute(getline(v:foldend), '^\s\+', '', '')
    let total = v:foldend - v:foldstart
    return first.'  ('.total.' lines)  '.last
endfunction

set foldtext=FoldText()
set fillchars=fold:\ 


"function! CDToDirectory()
"  let ft = exec('set ft')
"  echo ft
"  if ft == 'filetype=netrw'
"    echo 'HERE'
"  endif
"endfunction
"autocmd VimEnter * call CDToDirectory()

{'fraction_non_alphanumeric': 0.12752912323727775, 'fraction_numerical': 0.001226241569589209, 'mean_word_length': 4.494949494949495, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2982563', 'n_tokens_mistral': 576, 'n_tokens_neox': 548, 'n_words': 164}