<commit_before>if exists('g:loaded_leader')
  finish
endif
let g:loaded_leader = 1

" Set <Leader> used for mappings
let mapleader = " "
" And <LocalLeader> for buffer mappings
let maplocalleader = '\'

" Clear lines
nnoremap <Leader>cl 0D

" Refactor a word
" Courtesy of github@habamax/.vim/vimrc
nnoremap <Leader>cw :let @/ = expand('<cword>')<CR>cgn

" Save
nnoremap <Leader>s :write<CR>
" Quit quickly
nnoremap <Leader>q :quit<CR>
nnoremap <Leader>Q :qall<CR>
" Suspended (by <NAME>)
nnoremap <Leader>z :suspend<CR>

" Explore
nnoremap <Leader>ed :Explore<CR>
" Quickly input the directory of the current file on the command line
cnoremap <expr> %% filename#command_dir('%%')
" Need 'recursive' mapping here for %%
nmap <Leader>ew :e %%
nmap <Leader>ev :vs %%
nmap <Leader>es :sp %%
nmap <Leader>et :tabe %%
nnoremap <Leader>ef :find **/*
" Edit alternate file
nnoremap <Leader>` <C-^>
" Quickly edit vimrc
nnoremap <Leader>v :vsplit $MYVIMRC<CR>

" Trigger the command line window
nnoremap <Leader>; q:

" Search very magically
nnoremap <Leader>/ /\v
nnoremap <Leader>? ?\v

" Jump to lines in included files with word
nnoremap <Leader>i :call find#included_word(expand('<cword>'))<CR>

" Search with global
" Part of me wants to map / and ? to this
nnoremap <Leader>G :global //#<Left><Left>

nnoremap <expr> <Leader>r exists(':Reload') ? ':Reload<CR>' : ''

nnoremap <leader>} dap}p
nnoremap <leader>{ dap{{p<commit_msg>vim: add leader-eb mapping for buffers<commit_after>if exists('g:loaded_leader')
  finish
endif
let g:loaded_leader = 1

" Set <Leader> used for mappings
let mapleader = " "
" And <LocalLeader> for buffer mappings
let maplocalleader = '\'

" Clear lines
nnoremap <Leader>cl 0D

" Refactor a word
" Courtesy of github@habamax/.vim/vimrc
nnoremap <Leader>cw :let @/ = expand('<cword>')<CR>cgn

" Save
nnoremap <Leader>s :write<CR>
" Quit quickly
nnoremap <Leader>q :quit<CR>
nnoremap <Leader>Q :qall<CR>
" Suspended (by <NAME>)
nnoremap <Leader>z :suspend<CR>

" Explore
nnoremap <Leader>ed :Explore<CR>
" Quickly input the directory of the current file on the command line
cnoremap <expr> %% filename#command_dir('%%')
" Need 'recursive' mapping here for %%
nmap <Leader>ew :e %%
nmap <Leader>ev :vs %%
nmap <Leader>es :sp %%
nmap <Leader>et :tabe %%
nnoremap <Leader>ef :find **/*
nnoremap <Leader>eb :buffer <C-d>
" Edit alternate file
nnoremap <Leader>` <C-^>
" Quickly edit vimrc
nnoremap <Leader>v :vsplit $MYVIMRC<CR>

" Trigger the command line window
nnoremap <Leader>; q:

" Search very magically
nnoremap <Leader>/ /\v
nnoremap <Leader>? ?\v

" Jump to lines in included files with word
nnoremap <Leader>i :call find#included_word(expand('<cword>'))<CR>

" Search with global
" Part of me wants to map / and ? to this
nnoremap <Leader>G :global //#<Left><Left>

nnoremap <expr> <Leader>r exists(':Reload') ? ':Reload<CR>' : ''

nnoremap <leader>} dap}p
nnoremap <leader>{ dap{{p
{'fraction_non_alphanumeric': 0.14682675814751286, 'fraction_numerical': 0.0013722126929674098, 'mean_word_length': 5.2844827586206895, 'pattern_counts': {'":': 0, '<': 87, '<?xml version=': 0, '>': 87, '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': '213032', 'n_tokens_mistral': 1174, 'n_tokens_neox': 1124, 'n_words': 332}