<commit_before>" leader-> ' ' 
let mapleader = ' '


" jj in Insert mode issues an <ESC> 
inoremap jj <ESC>
vnoremap jj <ESC>
vnoremap // <ESC>

"in go FileType, <leader>-b and r run build and go-build and go-run
autocmd FileType go nmap <leader>b  <Plug>(go-build)
autocmd FileType go nmap <leader>r  <Plug>(go-run)
"Ctl-n and Ctl-m do next and prev error
map <C-n> :cnext<CR>
map <C-m> :cprevious<CR>
nnoremap <leader>a :cclose<CR>

" Ctrl-K means close buffer
nmap <C-k> :bd!<CR>
imap <C-k> <ESC>:bd!<CR>



" leader-cd changes to the directory of the current file
nnoremap <leader>cd :cd %:p:h<CR>:pwd<CR>


" leader-e sources vim config
nnoremap <leader>sv :source $MYVIMRC<CR>


" better searching using normal regex's
nnoremap / /\v
vnoremap / /\v
" remap leader-space to stop highlighting
nnoremap <leader><space> :noh<cr>
nnoremap <tab> %
vnoremap <tab> %


" This first mapping makes ,w open a new vertical
" split and switch over to it. Because really, how
" often do you split your window and not want to do
" something in the new split?
nnoremap <leader>w <C-w>v<C-w>l


"NerdCommenter bindings.  
nmap <D-/> <Plug>NERDCommenterToggle
nmap <C-/>  <Plug>NERDCommenterToggle
imap <D-/> <ESC><Plug>NERDCommenterToggle<CR>a
imap <C-/>  <ESC><Plug>NERDCommenterToggle<CR>a


"leader-b-n: go to next buffer view
nnoremap <leader>n :bn!<CR>
nnoremap <leader>p :bp!<CR>
"move to the another (next) buffer, and kill the one we just left
nnoremap <leader>d :bn\|bd! #<CR>
nnoremap <leader>D :bd!<CR>

"likewise, move around in tabs
nnoremap <leader>tn :tabn<CR>
nnoremap <leader>tp :tabp<CR>
nnoremap <leader>tc :tabe!<CR>


" ctrl-g drops to vim cmd entry
inoremap <C-g> <ESC>:
nnoremap <C-g> <ESC>:
vnoremap <C-g> <ESC>:
<commit_msg>Added shortcuts for running go tests<commit_after>" leader-> ' ' 
let mapleader = ' '


" jj in Insert mode issues an <ESC> 
inoremap jj <ESC>
vnoremap jj <ESC>
vnoremap // <ESC>

"in go FileType, <leader>-b and r run build and go-build and go-run
autocmd FileType go nmap <leader>b  <Plug>(go-build)
autocmd FileType go nmap <leader>r  <Plug>(go-run)
"Ctl-n and Ctl-m do next and prev error
map <C-n> :cnext<CR>
map <C-m> :cprevious<CR>
nnoremap <leader>a :cclose<CR>

" Ctrl-K means close buffer
nmap <C-k> :bd!<CR>
imap <C-k> <ESC>:bd!<CR>



" leader-cd changes to the directory of the current file
nnoremap <leader>cd :cd %:p:h<CR>:pwd<CR>


" leader-e sources vim config
nnoremap <leader>sv :source $MYVIMRC<CR>


" better searching using normal regex's
nnoremap / /\v
vnoremap / /\v
" remap leader-space to stop highlighting
nnoremap <leader><space> :noh<cr>
nnoremap <tab> %
vnoremap <tab> %


" This first mapping makes ,w open a new vertical
" split and switch over to it. Because really, how
" often do you split your window and not want to do
" something in the new split?
nnoremap <leader>w <C-w>v<C-w>l


"NerdCommenter bindings.  
nmap <D-/> <Plug>NERDCommenterToggle
nmap <C-/>  <Plug>NERDCommenterToggle
imap <D-/> <ESC><Plug>NERDCommenterToggle<CR>a
imap <C-/>  <ESC><Plug>NERDCommenterToggle<CR>a


"leader-b-n: go to next buffer view
nnoremap <leader>n :bn!<CR>
nnoremap <leader>p :bp!<CR>
"move to the another (next) buffer, and kill the one we just left
nnoremap <leader>d :bn\|bd! #<CR>
nnoremap <leader>D :bd!<CR>

"likewise, move around in tabs
nnoremap <leader>tn :tabn<CR>
nnoremap <leader>tp :tabp<CR>
nnoremap <leader>tc :tabe!<CR>


" ctrl-g drops to vim cmd entry
inoremap <C-g> <ESC>:
nnoremap <C-g> <ESC>:
vnoremap <C-g> <ESC>:


nnoremap <leader>t :GoTest 
nnoremap <leader>T :GoCoverage<CR>



{'fraction_non_alphanumeric': 0.14133482893998878, 'fraction_numerical': 0.0, 'mean_word_length': 4.496147919876734, 'pattern_counts': {'":': 0, '<': 136, '<?xml version=': 0, '>': 138, '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': '1052540', 'n_tokens_mistral': 1540, 'n_tokens_neox': 1442, 'n_words': 459}