<commit_before>" Quickly switch to insert mode
nnoremap <cr> i
nnoremap <bs> i<bs>

" Send <C-o> in insert mode will run normal command
" Home/End under OSX
inoremap <C-a> <C-o>0
inoremap <C-e> <C-o>$
" Cursor Move
inoremap <C-j> <C-o>j
inoremap <C-k> <C-o>k
" Easymotion in insert mode,
imap <C-w> <C-o><leader><leader>b
imap <C-v> <C-o><leader><leader>w
"Delete from cursor to end of word
inoremap <C-d> <C-o>dw

" http://vim.wikia.com/wiki/Prevent_escape_from_moving_the_cursor_one_character_to_the_left
let CursorColumnI = 0 "the cursor column position in INSERT
autocmd InsertEnter * let CursorColumnI = col('.')
autocmd CursorMovedI * let CursorColumnI = col('.')
autocmd InsertLeave * if col('.') != CursorColumnI | call cursor(0, col('.')+1) | endif"

set timeoutlen=2000
au InsertLeave * set timeoutlen=2000
au InsertEnter * set timeoutlen=10<commit_msg>add c-h,l in insert mode<commit_after>" Quickly switch to insert mode
nnoremap <cr> i
nnoremap <bs> i<bs>

" Send <C-o> in insert mode will run normal command
" Home/End under OSX
inoremap <C-a> <C-o>0
inoremap <C-e> <C-o>$
" Cursor Move
inoremap <C-j> <C-o>j
inoremap <C-k> <C-o>k
inoremap <C-h> <C-o>h
inoremap <C-l> <C-o>l
" Easymotion in insert mode,
imap <C-w> <C-o><leader><leader>b
imap <C-v> <C-o><leader><leader>w
"Delete from cursor to end of word
inoremap <C-d> <C-o>dw

" http://vim.wikia.com/wiki/Prevent_escape_from_moving_the_cursor_one_character_to_the_left
let CursorColumnI = 0 "the cursor column position in INSERT
autocmd InsertEnter * let CursorColumnI = col('.')
autocmd CursorMovedI * let CursorColumnI = col('.')
autocmd InsertLeave * if col('.') != CursorColumnI | call cursor(0, col('.')+1) | endif"

set timeoutlen=2000
au InsertLeave * set timeoutlen=2000
au InsertEnter * set timeoutlen=10
{'fraction_non_alphanumeric': 0.14261650758001124, 'fraction_numerical': 0.015721504772599662, 'mean_word_length': 4.97986577181208, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 51, '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': '338798', 'n_tokens_mistral': 745, 'n_tokens_neox': 714, 'n_words': 203}