<commit_before>" Shamelessy taken from
" http://www.codeography.com/2013/06/17/replacing-all-the-things-with-unite-vim.html
" and http://bling.github.io//blog/2013/06/02/unite-dot-vim-the-plugin-you-didnt-know-you-need/#comment-919769841

let g:unite_source_history_yank_enable = 1
call unite#filters#matcher_default#use(['matcher_fuzzy'])

" File searching like ctrlp.vim
nnoremap <C-p> :Unite -no-split -buffer-name=files -start-insert -auto-preview file_rec/async<CR>

" Search in buffers
nnoremap <leader>b :<C-u>Unite -no-split -buffer-name=buffer -quick-match  buffer<CR>

" Yank history like yankring/yankstack
nnoremap <leader>y :<C-u>Unite -no-split -buffer-name=yank  history/yank<CR>

" Search MRU files
nnoremap <leader>r :<C-u>Unite -no-split -buffer-name=mru -quick-match file_mru<CR>

if executable('ack-grep')
  let g:unite_source_grep_command = 'ack-grep'
  let g:unite_source_grep_default_opts = '--no-heading --no-color -k -H'
  let g:unite_source_grep_recursive_opt = ''
endif

if executable('ag')
  let g:unite_source_grep_command = 'ag'
  let g:unite_source_grep_default_opts = '--noheading --nocolor'<commit_msg><space>/ triggers Unite grep<commit_after>" Shamelessy taken from
" http://www.codeography.com/2013/06/17/replacing-all-the-things-with-unite-vim.html
" and http://bling.github.io//blog/2013/06/02/unite-dot-vim-the-plugin-you-didnt-know-you-need/#comment-919769841

let g:unite_source_history_yank_enable = 1
call unite#filters#matcher_default#use(['matcher_fuzzy'])

" File searching like ctrlp.vim
nnoremap <C-p> :Unite -no-split -buffer-name=files -start-insert -auto-preview file_rec/async<CR>

" Search in buffers
nnoremap <leader>b :<C-u>Unite -no-split -buffer-name=buffer -quick-match  buffer<CR>

" Yank history like yankring/yankstack
nnoremap <leader>y :<C-u>Unite -no-split -buffer-name=yank  history/yank<CR>

" Search MRU files
nnoremap <leader>r :<C-u>Unite -no-split -buffer-name=mru -quick-match file_mru<CR>

" Ag/ack + unite
nnoremap <space>/ :<C-u>Unite -no-split -buffer-name=grep grep:.<cr>

if executable('ack-grep')
  let g:unite_source_grep_command = 'ack-grep'
  let g:unite_source_grep_default_opts = '--no-heading --no-color -k -H'
  let g:unite_source_grep_recursive_opt = ''
endif

if executable('ag')
  let g:unite_source_grep_command = 'ag'
  let g:unite_source_grep_default_opts = '--noheading --nocolor'
{'fraction_non_alphanumeric': 0.1475548060708263, 'fraction_numerical': 0.021922428330522766, 'mean_word_length': 4.873762376237623, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5248771', 'n_tokens_mistral': 1005, 'n_tokens_neox': 940, 'n_words': 164}