<commit_before>""" Apps

"" CHECK: Ultimate hex-editing system {{{1
" - depends on hexript for some optional scripts
" - (now that repo rbtnn/hexript.vim don't exists?)
" THINK hook_add = 'let g:vinarise_enable_auto_detect = 1'
" EXPL:(lazy) don't detects binary file or large file automatically.
call dein#add('Shougo/vinarise.vim', {
  \ 'on_cmd': ['Vinarise', 'VinariseDump'],
  \ 'hook_source': "
\\n   let g:vinarise_enable_auto_detect = 0
\\n   let g:vinarise_detect_large_file_size  =  0
\\n   let g:vinarise_objdump_command = 'objdump'
\\n   let g:vinarise_no_default_keymappings = 1
\"})



"" CHECK: Integration of python notebooks {{{1
" OR wilywampa/vim-ipython
" BUG: don't work with system-wide python
" call dein#add('wmvanvliet/vim-ipython', {
"   \ 'if': executable('ipython'),
"   \ 'on_ft': 'python'})



"" HACK: forked for rich formatting, syntax HL, shorcuts {{{1
" Use '!dict' translations from inside vim
call dein#add('amerlyq/dictl.vim', {
  \ 'if': executable('dict'),
  \ 'on_map': [['nx', 'g=']],
  \ 'on_cmd': 'Dict'})



"" CHECK Recursive diff for dirs {{{1
" USAGE:<buffer>: <CR>/o, [nx, s], [uxiaq]
call dein#add('will133/vim-dirdiff', {
  \ 'on_cmd': 'DirDiff'})



"" CHECK supports 'ignoring' parts of diff {{{1
" ALSO: https://github.com/junkblocker/patchreview-vim
" SEE:
"   http://vim.1045645.n5.nabble.com/Moving-diff-hunks-td1175653.html
"   https://github.com/search?p=2&q=vim+diff&ref=searchresults&type=Repositories&utf8=%E2%9C%93
call dein#add('chrisbra/vim-diff-enhanced', {
  \ 'on_cmd': ['EnhancedDiff', 'PatienceDiff', 'EnhancedDiffIgnorePat']})


""" Web

" W3m from vim {{{1
" yuratomo/w3m.vim: {}
" hook_add = 'nnoremap W     :<C-u>W3m<Space><C-r>+'
"
" Get page content by :e http://... w/o netrw {{{1
" repo = 'lambdalisue/vim-protocol'
" on_path = '^https\?://'
"
" Viewing man in vim -- good, but no colors in git lg1, need to investigate {{{1
" rkitover/vimpager: {}



"" CHECK open URI or search. Combinable with vim-quickrun ? {{{1
" NOTE:(opinion) curr overkill for me -- as most of feas impl'ed in qute
" BUG: sometimes works in same thread, loading CPU. TEMP:FIX: ./setup -U vim
" FIXME: don't treat '/path/to/file.pdf' as url
" ALT:CHG: r.b --target tab "$@" BUT how to choose target window (named)?
call dein#add('tyru/open-browser.vim', {
  \ 'on_map': [['nx', '<Plug>(openbrowser-']],
  \ 'on_cmd': 'OpenBrowserSmartSearch',
  \ 'hook_source': "
\\n   let g:openbrowser_use_vimproc = 1
\\n   let g:openbrowser_no_default_menus = 1
\\n   let g:openbrowser_force_foreground_after_open = 0
\\n   let g:openbrowser_browser_commands = [
\   {'background': 1, 'name': 'r.b', 'args': ['{browser}', '{uri}']},
\   {'background': 1, 'name': 'firefox', 'args': ['{browser}', '{uri}']},
\   {'background': 0, 'name': 'w3m', 'args': ['{browser}', '{uri}']}
\ ]
\", 'hook_add': "
\\n   let g:netrw_nogx = 1
\\n   nmap <silent><unique> gx <Plug>(openbrowser-smart-search)
\\n   vmap <silent><unique> gx <Plug>(openbrowser-smart-search)
\"})<commit_msg>[vim] fix open-browser<commit_after>""" Apps

"" CHECK: Ultimate hex-editing system {{{1
" - depends on hexript for some optional scripts
" - (now that repo rbtnn/hexript.vim don't exists?)
" THINK hook_add = 'let g:vinarise_enable_auto_detect = 1'
" EXPL:(lazy) don't detects binary file or large file automatically.
call dein#add('Shougo/vinarise.vim', {
  \ 'on_cmd': ['Vinarise', 'VinariseDump'],
  \ 'hook_source': "
\\n   let g:vinarise_enable_auto_detect = 0
\\n   let g:vinarise_detect_large_file_size  =  0
\\n   let g:vinarise_objdump_command = 'objdump'
\\n   let g:vinarise_no_default_keymappings = 1
\"})



"" CHECK: Integration of python notebooks {{{1
" OR wilywampa/vim-ipython
" BUG: don't work with system-wide python
" call dein#add('wmvanvliet/vim-ipython', {
"   \ 'if': executable('ipython'),
"   \ 'on_ft': 'python'})



"" HACK: forked for rich formatting, syntax HL, shorcuts {{{1
" Use '!dict' translations from inside vim
call dein#add('amerlyq/dictl.vim', {
  \ 'if': executable('dict'),
  \ 'on_map': [['nx', 'g=']],
  \ 'on_cmd': 'Dict'})



"" CHECK Recursive diff for dirs {{{1
" USAGE:<buffer>: <CR>/o, [nx, s], [uxiaq]
call dein#add('will133/vim-dirdiff', {
  \ 'on_cmd': 'DirDiff'})



"" CHECK supports 'ignoring' parts of diff {{{1
" ALSO: https://github.com/junkblocker/patchreview-vim
" SEE:
"   http://vim.1045645.n5.nabble.com/Moving-diff-hunks-td1175653.html
"   https://github.com/search?p=2&q=vim+diff&ref=searchresults&type=Repositories&utf8=%E2%9C%93
call dein#add('chrisbra/vim-diff-enhanced', {
  \ 'on_cmd': ['EnhancedDiff', 'PatienceDiff', 'EnhancedDiffIgnorePat']})


""" Web

" W3m from vim {{{1
" yuratomo/w3m.vim: {}
" hook_add = 'nnoremap W     :<C-u>W3m<Space><C-r>+'
"
" Get page content by :e http://... w/o netrw {{{1
" repo = 'lambdalisue/vim-protocol'
" on_path = '^https\?://'
"
" Viewing man in vim -- good, but no colors in git lg1, need to investigate {{{1
" rkitover/vimpager: {}



"" CHECK open URI or search. Combinable with vim-quickrun ? {{{1
" NOTE:(opinion) curr overkill for me -- as most of feas impl'ed in qute
" BUG: sometimes works in same thread, loading CPU. TEMP:FIX: ./setup -U vim
" FIXME: don't treat '/path/to/file.pdf' as url
" ALT:CHG: r.b --target tab "$@" BUT how to choose target window (named)?
call dein#add('tyru/open-browser.vim', {
  \ 'on_map': [['nx', '<Plug>(openbrowser-']],
  \ 'on_cmd': 'OpenBrowserSmartSearch',
  \ 'hook_source': "
\\n   let g:openbrowser_no_default_menus = 1
\\n   let g:openbrowser_force_foreground_after_open = 0
\\n   let g:openbrowser_browser_commands = [
\   {'background': 0, 'name': 'r.b', 'args': ['{browser}', '{uri}']},
\   {'background': 0, 'name': 'firefox', 'args': ['{browser}', '{uri}']},
\   {'background': 0, 'name': 'w3m', 'args': ['{browser}', '{uri}']}
\ ]
\", 'hook_add': "
\\n   let g:netrw_nogx = 1
\\n   nmap <silent><unique> gx <Plug>(openbrowser-smart-search)
\\n   vmap <silent><unique> gx <Plug>(openbrowser-smart-search)
\"})
" TEMP:BAD: neovim system() don't support 'background' through "&"
"   https://github.com/tyru/open-browser.vim/pull/101
" \\n   let g:openbrowser_use_vimproc = 1
{'fraction_non_alphanumeric': 0.19427269768955419, 'fraction_numerical': 0.016433452652131468, 'mean_word_length': 4.231489361702128, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, 'https://': 5, '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': '103317', 'n_tokens_mistral': 2550, 'n_tokens_neox': 2409, 'n_words': 572}