<commit_before>nnoremap <space> <nop>
let mapleader = "\<space>"
let maplocalleader = ","

nnoremap <leader>wm :tab sp<CR>
nnoremap <leader>bD :bdelete!<CR>
nnoremap <leader>wo :only<cr>
nnoremap <leader>to :tabonly<cr>
nnoremap <leader>bo :call <SID>delete_hidden_buffers()<CR>
nnoremap <leader>zz :call <SID>correct_to_first_spelling_suggestion()<CR>
nnoremap <leader>tw :call <SID>trim_trailing_whitespace()<CR>
tnoremap jk <c-\><c-n>

function! s:delete_hidden_buffers()
  let tpbl=[]
  call map(range(1, tabpagenr('$')), 'extend(tpbl, tabpagebuflist(v:val))')
  for buf in filter(range(1, bufnr('$')), 'bufexists(v:val) && index(tpbl, v:val)==-1')
    silent execute 'bwipeout' buf
  endfor
endfunction

function! s:correct_to_first_spelling_suggestion()
  normal 1z=
endfunction

function! s:trim_trailing_whitespace()
  %s/\s\+$//e
endfunction
<commit_msg>Use normal!<commit_after>nnoremap <space> <nop>
let mapleader = "\<space>"
let maplocalleader = ","

nnoremap <leader>wm :tab sp<CR>
nnoremap <leader>bD :bdelete!<CR>
nnoremap <leader>wo :only<cr>
nnoremap <leader>to :tabonly<cr>
nnoremap <leader>bo :call <SID>delete_hidden_buffers()<CR>
nnoremap <leader>zz :call <SID>correct_to_first_spelling_suggestion()<CR>
nnoremap <leader>tw :call <SID>trim_trailing_whitespace()<CR>
tnoremap jk <c-\><c-n>

function! s:delete_hidden_buffers()
  let tpbl=[]
  call map(range(1, tabpagenr('$')), 'extend(tpbl, tabpagebuflist(v:val))')
  for buf in filter(range(1, bufnr('$')), 'bufexists(v:val) && index(tpbl, v:val)==-1')
    silent execute 'bwipeout' buf
  endfor
endfunction

function! s:correct_to_first_spelling_suggestion()
  normal! 1z=
endfunction

function! s:trim_trailing_whitespace()
  %s/\s\+$//e
endfunction

{'fraction_non_alphanumeric': 0.16579710144927537, 'fraction_numerical': 0.00463768115942029, 'mean_word_length': 7.378640776699029, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 47, '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': '7646541', 'n_tokens_mistral': 732, 'n_tokens_neox': 709, 'n_words': 137}