<commit_before>
function! MarkdownLevel()
    if getline(v:lnum) =~ '^# .*$'
        return ">1"
    endif
    if getline(v:lnum) =~ '^## .*$'
        return ">2"
    endif
    if getline(v:lnum) =~ '^### .*$'
        return ">3"
    endif
    if getline(v:lnum) =~ '^#### .*$'
        return ">4"
    endif
    if getline(v:lnum) =~ '^##### .*$'
        return ">5"
    endif
    if getline(v:lnum) =~ '^###### .*$'
        return ">6"
    endif
    return "="
endfunction

    autocmd BufNewFile,BufRead *.md set filetype=markdown

setlocal foldexpr=MarkdownLevel()
setlocal foldmethod=expr
setlocal ai
setlocal formatoptions=tcroqn2
setlocal comments=n:>
setlocal textwidth=80
<commit_msg>VIM: Remove textwidth=80 for markdown<commit_after>
function! MarkdownLevel()
    if getline(v:lnum) =~ '^# .*$'
        return ">1"
    endif
    if getline(v:lnum) =~ '^## .*$'
        return ">2"
    endif
    if getline(v:lnum) =~ '^### .*$'
        return ">3"
    endif
    if getline(v:lnum) =~ '^#### .*$'
        return ">4"
    endif
    if getline(v:lnum) =~ '^##### .*$'
        return ">5"
    endif
    if getline(v:lnum) =~ '^###### .*$'
        return ">6"
    endif
    return "="
endfunction

    autocmd BufNewFile,BufRead *.md set filetype=markdown

setlocal foldexpr=MarkdownLevel()
setlocal foldmethod=expr
setlocal ai
setlocal formatoptions=tcroqn2
setlocal comments=n:>
"setlocal textwidth=80

{'fraction_non_alphanumeric': 0.1823988644428673, 'fraction_numerical': 0.014194464158977998, 'mean_word_length': 2.780160857908847, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, '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': '892150', 'n_tokens_mistral': 581, 'n_tokens_neox': 539, 'n_words': 108}