<commit_before>" Custom Mappings
" ==============
"
" Arpeggio lets us define key-chord combos (simultaneous key presses)
call arpeggio#load()

" j and k simultaneously exits insert or visual mode
Arpeggio inoremap jk  <Esc>
Arpeggio vnoremap jk  <Esc>

" Y should behave like C and D
nmap Y y$

" :W should behave like :w
cnoreabbrev W w

" allows saving with ;w;
cnoremap w; w<CR>

" save file with sudo permissions
cmap w!! w !sudo tee % >/dev/null

" Move around splits with ctrl+direction
nnoremap <c-j> <c-w>j
nnoremap <c-k> <c-w>k
nnoremap <c-h> <c-w>h
nnoremap <c-l> <c-w>l

" find merge conflict markers
nmap <silent> <leader>cf <ESC>/\v^[<=>]{7}( .*\|$)<CR>

" clear search highlighting when hitting enter
nnoremap <leader><space> :nohlsearch<CR><commit_msg>%% now expands to current file's directory in vim command line<commit_after>" Custom Mappings
" ==============
"
" Arpeggio lets us define key-chord combos (simultaneous key presses)
call arpeggio#load()

" j and k simultaneously exits insert or visual mode
Arpeggio inoremap jk  <Esc>
Arpeggio vnoremap jk  <Esc>

" Y should behave like C and D
nmap Y y$

" :W should behave like :w
cnoreabbrev W w

" allows saving with ;w;
cnoremap w; w<CR>

" save file with sudo permissions
cmap w!! w !sudo tee % >/dev/null

" return current opened file's dirctory
cnoremap %% <C-R>=expand('%:h').'/'<CR>

" Move around splits with ctrl+direction
nnoremap <c-j> <c-w>j
nnoremap <c-k> <c-w>k
nnoremap <c-h> <c-w>h
nnoremap <c-l> <c-w>l

" find merge conflict markers
nmap <silent> <leader>cf <ESC>/\v^[<=>]{7}( .*\|$)<CR>

" clear search highlighting when hitting enter
nnoremap <leader><space> :nohlsearch<CR>
{'fraction_non_alphanumeric': 0.14705882352941177, 'fraction_numerical': 0.0012004801920768306, 'mean_word_length': 4.5198675496688745, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 45, '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': '243713', 'n_tokens_mistral': 668, 'n_tokens_neox': 633, 'n_words': 220}