<commit_before>
" Use Ctrl-L to exit insert mode.
inoremap <buffer> <expr> <C-l> pumvisible() ? '<C-l>' : '<Esc>'
" Use Ctrl-L to clear highlighting and refresh unite's cache (only mapped by
" unite in insert mode).
nmap <buffer> <silent> <C-l> <Plug>(unite_redraw)<Plug>(david-redraw-screen)

" Unlike d, D doesn't wait after input.
function! s:unite_delete()
    " First line is for editing, so work like normal.
    if getcurpos()[1] == 1
        return 'D'
    else
        " Other lines are files. Might be in file exploring mode and want to
        " delete. (If not, we'll get an error.)
        return unite#smart_map('d', unite#do_action('delete'))
    endif
endf
nnoremap <silent><buffer><expr> D <SID>unite_delete()
<commit_msg>Open unite result in a split<commit_after>
" Use Ctrl-L to exit insert mode.
inoremap <buffer> <expr> <C-l> pumvisible() ? '<C-l>' : '<Esc>'
" Use Ctrl-L to clear highlighting and refresh unite's cache (only mapped by
" unite in insert mode).
nmap <buffer> <silent> <C-l> <Plug>(unite_redraw)<Plug>(david-redraw-screen)

" Unlike d, D doesn't wait after input.
function! s:unite_delete()
    " First line is for editing, so work like normal.
    if getcurpos()[1] == 1
        return 'D'
    else
        " Other lines are files. Might be in file exploring mode and want to
        " delete. (If not, we'll get an error.)
        return unite#smart_map('d', unite#do_action('delete'))
    endif
endf
nnoremap <silent><buffer><expr> D <SID>unite_delete()

" Easy split that's not already in use. (Saving and completing braces doesn't
" make sense in unite.)
inoremap <silent><buffer><expr> <C-s> unite#do_action('split')
{'fraction_non_alphanumeric': 0.13268998793727382, 'fraction_numerical': 0.0024125452352231603, 'mean_word_length': 3.6997167138810196, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '4858077', 'n_tokens_mistral': 583, 'n_tokens_neox': 543, 'n_words': 201}