<commit_before>let g:histignore = [
      \ '^buf$',
      \ '^history$',
      \ '^h$',
      \ '^q$',
      \ '^qa$',
      \ '^w$',
      \ '^wq$',
      \ '^wa$',
      \ '^wqa$',
      \ '^q!$',
      \ '^qa!$',
      \ '^w!$',
      \ '^wq!$',
      \ '^wa!$',
      \'^wqa!$'
      \ ]

function! DeleteIgnoredHistories() abort
  call filter(copy(g:histignore), {i, v -> histdel(':', v)})
endfunction

function! s:set_prompt_buffer_config() abort
  if &l:buftype ==# 'prompt'
    inoremap <buffer> <C-j> <Esc><C-w>j
    inoremap <buffer> <C-k> <Esc><C-w>k
    inoremap <buffer> <C-h> <Esc><C-w>h
    inoremap <buffer> <C-l> <Esc><C-w>l
    startinsert
  endif
endfunction

if has('autocmd')
  augroup MyVimrc
    autocmd!
    autocmd QuickfixCmdPost make,grep,grepadd,vimgrep,vimgrepadd cwin<commit_msg>vim: Disable startinsert on prompt-buffer<commit_after>let g:histignore = [
      \ '^buf$',
      \ '^history$',
      \ '^h$',
      \ '^q$',
      \ '^qa$',
      \ '^w$',
      \ '^wq$',
      \ '^wa$',
      \ '^wqa$',
      \ '^q!$',
      \ '^qa!$',
      \ '^w!$',
      \ '^wq!$',
      \ '^wa!$',
      \'^wqa!$'
      \ ]

function! DeleteIgnoredHistories() abort
  call filter(copy(g:histignore), {i, v -> histdel(':', v)})
endfunction

function! s:set_prompt_buffer_config() abort
  if &l:buftype ==# 'prompt'
    inoremap <buffer> <C-j> <Esc><C-w>j
    inoremap <buffer> <C-k> <Esc><C-w>k
    inoremap <buffer> <C-h> <Esc><C-w>h
    inoremap <buffer> <C-l> <Esc><C-w>l
    " startinsert
  endif
endfunction

if has('autocmd')
  augroup MyVimrc
    autocmd!
    autocmd QuickfixCmdPost make,grep,grepadd,vimgrep,vimgrepadd cwin
{'fraction_non_alphanumeric': 0.22363636363636363, 'fraction_numerical': 0.0, 'mean_word_length': 2.3901437371663246, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 37, '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': '189268', 'n_tokens_mistral': 746, 'n_tokens_neox': 728, 'n_words': 125}