<commit_before>" Vim filetype plugin
" Language              Markdown
" Maintainer            <NAME> <<EMAIL>>

" Wrap at 80 characters
setlocal textwidth=80
" Spell check on
setlocal spell spelllang=en_us<commit_msg>Add heading level commands for Markdown<commit_after>" Vim filetype plugin
" Language              Markdown
" Maintainer            <NAME> <<EMAIL>>

" Wrap at 80 characters
setlocal textwidth=80
" Spell check on
setlocal spell spelllang=en_us

function! UnderlineHeading(level)
  if a:level == 1
    normal! yypVr=
  elseif a:level == 2
    normal! yypVr-
  else
    execute "normal! I### "
  endif
endfunction

nnoremap <LocalLeader>u1 :call UnderlineHeading(1)<CR>
nnoremap <LocalLeader>u2 :call UnderlineHeading(2)<CR>
nnoremap <LocalLeader>u3 :call UnderlineHeading(3)<CR>
{'fraction_non_alphanumeric': 0.0906801007556675, 'fraction_numerical': 0.020151133501259445, 'mean_word_length': 3.96875, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '4861158', 'n_tokens_mistral': 275, 'n_tokens_neox': 263, 'n_words': 76}