<commit_before>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Key mappings

""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Ag
nnoremap <leader>ag :Ag<space>

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Buffer

nnoremap <silent> \b :Bclose<CR>
nnoremap <silent> \B :Bonly<CR>

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Editing

" Remap VIM 0 to first non-blank character
map 0 ^

" Map Ctrl-J to enter key for better plugin support
imap <C-J> <CR>

" Fast saving
nmap <leader>w :w!<cr>

" Disable Ex mode
nnoremap Q <Nop>

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" GitGutter

nnoremap <silent> [g :Gprevhunk<CR>
nnoremap <silent> ]g :Gnexthunk<CR>

nnoremap <leader>sh :GitGutterStageHunk<CR>

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" gv.vim

nnoremap <leader>gv :GV!<CR>
nnoremap <leader>gV :GV<CR>
xnoremap <leader>gv :GV<CR>

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Quickfix

" Close the quickfix window
nnoremap <silent> \q :cclose<CR>

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Search and replace

" Turn off search highlight
nnoremap <silent> \h :noh<CR>

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Tab

nnoremap <silent> \t :tabclose<CR>

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Visual mode

" Pressing * or # searches for the current selection
" Super useful! From an idea by <NAME><commit_msg>Implemented key mappings for tmux execute at next pane<commit_after>"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Key mappings

""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Ag
nnoremap <leader>ag :Ag<space>

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Buffer

nnoremap <silent> \b :Bclose<CR>
nnoremap <silent> \B :Bonly<CR>

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Editing

" Remap VIM 0 to first non-blank character
map 0 ^

" Map Ctrl-J to enter key for better plugin support
imap <C-J> <CR>

" Fast saving
nmap <leader>w :w!<cr>

" Disable Ex mode
nnoremap Q <Nop>

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" GitGutter

nnoremap <silent> [g :Gprevhunk<CR>
nnoremap <silent> ]g :Gnexthunk<CR>

nnoremap <leader>sh :GitGutterStageHunk<CR>

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" gv.vim

nnoremap <leader>gv :GV!<CR>
nnoremap <leader>gV :GV<CR>
xnoremap <leader>gv :GV<CR>

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Quickfix

" Close the quickfix window
nnoremap <silent> \q :cclose<CR>

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Search and replace

" Turn off search highlight
nnoremap <silent> \h :noh<CR>

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Tab

nnoremap <silent> \t :tabclose<CR>

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" tmux

inoremap <silent> <M-,> <C-O>:call TmuxExecuteAtNextPane(getline('.'))<CR>
nnoremap <silent> ,, :call TmuxExecuteAtNextPane(getline('.'))<CR>
vnoremap <silent> ,, :call TmuxExecuteAtNextPane(getline("'<", "'>"))<CR>

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Visual mode

" Pressing * or # searches for the current selection
" Super useful! From an idea by <NAME>
{'fraction_non_alphanumeric': 0.47053624042427816, 'fraction_numerical': 0.0011785503830288745, 'mean_word_length': 8.029255319148936, 'pattern_counts': {'":': 0, '<': 72, '<?xml version=': 0, '>': 72, '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': '4485837', 'n_tokens_mistral': 1554, 'n_tokens_neox': 1516, 'n_words': 246}