<commit_before>" Enable spell checking.
setlocal spell

" Support YAML and TOML front matter syntax highlighting, via vim-markdown.
let g:vim_markdown_frontmatter = 1
let g:vim_markdown_toml_frontmatter = 1

" If an H1 is used as a file heading, don't fold it, via vim-markdown.
let g:vim_markdown_folding_style_pythonic = 1

" Turn on vim-markdown plugin.
packadd vim-markdown

" Use a dictionary to lookup words.
if executable('dict')
  setlocal keywordprg=dict
  " nnoremap <buffer> <silent> <S-k> :execute "split " . shellescape(&keywordprg) . "<bar> 0read !" . shellescape(&keywordprg) . " " . expand("<cword>")<bar> :Man!<CR>
endif

" vim:fdm=marker ft=vim et sts=2 sw=2
<commit_msg>Add markdown mapping for todo list<commit_after>" Enable spell checking.
setlocal spell

" Support YAML and TOML front matter syntax highlighting, via vim-markdown.
let g:vim_markdown_frontmatter = 1
let g:vim_markdown_toml_frontmatter = 1

" If an H1 is used as a file heading, don't fold it, via vim-markdown.
let g:vim_markdown_folding_style_pythonic = 1

" Turn on vim-markdown plugin.
packadd vim-markdown

" Use a dictionary to lookup words.
if executable('dict')
  setlocal keywordprg=dict
  " nnoremap <buffer> <silent> <S-k> :execute "split " . shellescape(&keywordprg) . "<bar> 0read !" . shellescape(&keywordprg) . " " . expand("<cword>")<bar> :Man!<CR>
endif

" Mapping to toggle todo list status.
function! ToggleTodo() abort
  if (getline('.') =~ "[x")
    normal ^f[lr 
  else
    normal ^f[lrx
  endif
endfunction
nnoremap <silent> <localleader>x :call ToggleTodo()<CR>

" vim:fdm=marker ft=vim et sts=2 sw=2

{'fraction_non_alphanumeric': 0.11648079306071871, 'fraction_numerical': 0.008674101610904586, 'mean_word_length': 4.767857142857143, 'pattern_counts': {'":': 0, '<': 20, '<?xml version=': 0, '>': 20, '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': '4727454', 'n_tokens_mistral': 606, 'n_tokens_neox': 565, 'n_words': 175}