<commit_before>" ----------------------------------------------------------------------------
" Basic Mappings
" ----------------------------------------------------------------------------
" Save
nnoremap ,, :w<CR>
inoremap ,, <C-O>:w<CR>

" Save & Quit
nnoremap <leader>x :x<CR>

" Quit
nnoremap <Leader>q :q<CR>
nnoremap <Leader>Q :qa!<CR>

" Open the file explorer in a new tab
nnoremap <leader>T :Texplore<CR>

" Useful for 'getting around'.
nnoremap <leader>e :edit **/*
nnoremap <leader>f :find *
nnoremap <leader>s :split **/*
nnoremap <leader>v :vsplit **/*

nnoremap <C-p> :FZF<CR>

" Movement in insert mode
inoremap <S-h> <C-o>h
inoremap <S-l> <C-o>a
inoremap <S-j> <C-o>j
inoremap <S-k> <C-o>k

" ----------------------------------------------------------------------------
" Editing
" ----------------------------------------------------------------------------
" Smart-insert semicolon
inoremap <leader>; <C-o>A;<Esc>:w<CR>
nnoremap <leader>; A;<Esc>:w<CR>

" Surround the word under the cursor in double quotes.
noremap <Leader>" viw<Esc>a"<Esc>hbi"<Esc>lel

" Make Y consistent with other capitals (e.g. C and D)
nnoremap Y y$<commit_msg>Revert "vim: Add mappings for movement in insert mode"<commit_after>" ----------------------------------------------------------------------------
" Basic Mappings
" ----------------------------------------------------------------------------
" Save
nnoremap ,, :w<CR>
inoremap ,, <C-O>:w<CR>

" Save & Quit
nnoremap <leader>x :x<CR>

" Quit
nnoremap <Leader>q :q<CR>
nnoremap <Leader>Q :qa!<CR>

" Open the file explorer in a new tab
nnoremap <leader>T :Texplore<CR>

" Useful for 'getting around'.
nnoremap <leader>e :edit **/*
nnoremap <leader>f :find *
nnoremap <leader>s :split **/*
nnoremap <leader>v :vsplit **/*

nnoremap <C-p> :FZF<CR>

" ----------------------------------------------------------------------------
" Editing
" ----------------------------------------------------------------------------
" Smart-insert semicolon
inoremap <leader>; <C-o>A;<Esc>:w<CR>
nnoremap <leader>; A;<Esc>:w<CR>

" Surround the word under the cursor in double quotes.
noremap <Leader>" viw<Esc>a"<Esc>hbi"<Esc>lel

" Make Y consistent with other capitals (e.g. C and D)
nnoremap Y y$
{'fraction_non_alphanumeric': 0.3962432915921288, 'fraction_numerical': 0.0, 'mean_word_length': 1.499441340782123, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 67, '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': '2066944', 'n_tokens_mistral': 759, 'n_tokens_neox': 720, 'n_words': 191}