<commit_before>" Misc
" Use enter to create new lines without entering insert mode
nnoremap <CR> o<Esc>
" 'disable' ex-mode
nnoremap Q <Esc>
" Treat long lines as break lines
map j gj
map k gk
" Quick Esc
inoremap jj <Esc>
" resume exploring files
nmap <leader>r :Rexplore<CR>
" go back to previous file after 'gf'
nnoremap gb :e #<CR>

nnoremap q: :q<CR>

" Git
" Insert at the begining
nnoremap <leader>gp :%s/^pick/p/g<CR>
" Insert at the begining
nnoremap <leader>gi ggI
" insert signoff line
nnoremap <leader>gs :call GitSign("Signed-off-by: ")<CR>
" empty file: useful when aborting a git rebase -i
nmap <leader>gd ggVGd


function! GitSign(text)
	let b:user  = system('git config user.name')
	let b:email = " <" . system('git config user.email') . ">"
	let b:sign = substitute(a:text.b:user.b:email, "[^[:print:]]", "", "g")
	let s:test = search(b:sign, "")

	if !s:test
		call append(".", b:sign)
	else
		echo "Already added Signed!"
	endif
endfunction<commit_msg>vim: remap: update Rexplore<commit_after>" Misc
" Use enter to create new lines without entering insert mode
nnoremap <CR> o<Esc>
" 'disable' ex-mode
nnoremap Q <Esc>
" Treat long lines as break lines
map j gj
map k gk
" Quick Esc
inoremap jj <Esc>
" resume exploring files
nmap - :Rexplore<CR>
" go back to previous file after 'gf'
nnoremap gb :e #<CR>

nnoremap q: :q<CR>

" Git
" Insert at the begining
nnoremap <leader>gp :%s/^pick/p/g<CR>
" Insert at the begining
nnoremap <leader>gi ggI
" insert signoff line
nnoremap <leader>gs :call GitSign("Signed-off-by: ")<CR>
" empty file: useful when aborting a git rebase -i
nmap <leader>gd ggVGd


function! GitSign(text)
	let b:user  = system('git config user.name')
	let b:email = " <" . system('git config user.email') . ">"
	let b:sign = substitute(a:text.b:user.b:email, "[^[:print:]]", "", "g")
	let s:test = search(b:sign, "")

	if !s:test
		call append(".", b:sign)
	else
		echo "Already added Signed!"
	endif
endfunction
{'fraction_non_alphanumeric': 0.14307692307692307, 'fraction_numerical': 0.0, 'mean_word_length': 4.464985994397759, 'pattern_counts': {'":': 0, '<': 32, '<?xml version=': 0, '>': 32, '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': '3266501', 'n_tokens_mistral': 772, 'n_tokens_neox': 741, 'n_words': 249}