<commit_before>" lead with spacebar
let mapleader = " "

" toggle insert mode with ✓ or F8, which is what i've rebound
" caps lock to on my two computers
imap ✓ <ESC>
map ✓ <ESC>
nnoremap ✓ i
imap <F8> <ESC>
map <F8> <ESC>
nnoremap <F8> i

" fast save and exit
nmap <silent> <CR> :write<CR>
nmap <silent> Q :quit<CR>
nmap <silent> QQ :quit!<CR>

" quick redo (remember we use check/f8 for insert mode, so i is unused)
nnoremap i <C-r>

" navigate through paragraphs intelligently
map j gj
map k gk

" navigate between methods
map J ]m
map K [m

" replace those binds
noremap <leader>j J
noremap <leader>k K

" ctrl navigates between splits
map <C-h> <C-w>h
map <C-j> <C-w>j
map <C-k> <C-w>k
map <C-l> <C-w>l

" leader navigates between tabs
map <leader>h :tabprevious<CR>
map <leader>l :tabnext<CR>

" scale splits with the arrow keys
map <Down> <C-w>-
map <Left> <C-w><
map <Right> <C-w>>
map <Up> <C-w>+

" open new splits with vv
nmap vv <C-w><C-v><C-w>l
nmap VV <C-w><C-s><C-w>j

" open new tabs with tt
nmap tt :tabnew<CR>

" map ctrlp's tag feature to <C-o>
nmap <silent> <C-o> :CtrlPTag<CR>

" quickly open tags -- combine with zz to go back
nnoremap <leader>f <C-]>

" quickly open ag.vim
nmap <leader>a :Ag 

" move back and forth through previous and next buffers
nmap <silent> <leader>x :bn<CR>
nmap <silent> <leader>z :bp<CR>
nmap zz <C-^>

" make Y consistent with D and C
map Y y$

" quick sort
map <silent> <leader>s :sort<CR>

" fugitive bindings<commit_msg>quick ag for word under cursor<commit_after>" lead with spacebar
let mapleader = " "

" toggle insert mode with ✓ or F8, which is what i've rebound
" caps lock to on my two computers
imap ✓ <ESC>
map ✓ <ESC>
nnoremap ✓ i
imap <F8> <ESC>
map <F8> <ESC>
nnoremap <F8> i

" fast save and exit
nmap <silent> <CR> :write<CR>
nmap <silent> Q :quit<CR>
nmap <silent> QQ :quit!<CR>

" quick redo (remember we use check/f8 for insert mode, so i is unused)
nnoremap i <C-r>

" navigate through paragraphs intelligently
map j gj
map k gk

" navigate between methods
map J ]m
map K [m

" replace those binds
noremap <leader>j J
noremap <leader>k K

" ctrl navigates between splits
map <C-h> <C-w>h
map <C-j> <C-w>j
map <C-k> <C-w>k
map <C-l> <C-w>l

" leader navigates between tabs
map <leader>h :tabprevious<CR>
map <leader>l :tabnext<CR>

" scale splits with the arrow keys
map <Down> <C-w>-
map <Left> <C-w><
map <Right> <C-w>>
map <Up> <C-w>+

" open new splits with vv
nmap vv <C-w><C-v><C-w>l
nmap VV <C-w><C-s><C-w>j

" open new tabs with tt
nmap tt :tabnew<CR>

" map ctrlp's tag feature to <C-o>
nmap <silent> <C-o> :CtrlPTag<CR>

" quickly open tags -- combine with zz to go back
nnoremap <leader>f <C-]>

" quickly open ag.vim
nmap <leader>a :Ag 
nmap <leader>A :execute "Ag \"" . expand("<cword>") . "\" $PWD"<CR>

" move back and forth through previous and next buffers
nmap <silent> <leader>x :bn<CR>
nmap <silent> <leader>z :bp<CR>
nmap zz <C-^>

" make Y consistent with D and C
map Y y$

" quick sort
map <silent> <leader>s :sort<CR>

" fugitive bindings
{'fraction_non_alphanumeric': 0.1430926475436861, 'fraction_numerical': 0.003297065611605671, 'mean_word_length': 3.877813504823151, 'pattern_counts': {'":': 0, '<': 130, '<?xml version=': 0, '>': 130, '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': '7273255', 'n_tokens_mistral': 1336, 'n_tokens_neox': 1264, 'n_words': 474}