<commit_before>" Double-tap leader to open command-line mode.
nnoremap <Leader><Leader> :
vnoremap <Leader><Leader> :

" Use Ctrl-K and Ctrl-J to navigate command history.
cnoremap <C-K> <Up>
cnoremap <C-J> <Down>

" Use : to open command-line window.
nnoremap : q:
vnoremap : q:

" Use Q to toggle folds.
nmap Q za


" Double-tap backslash to write.
nnoremap <silent> \\ :<C-U>write<CR><commit_msg>Add mappings for quitting.<commit_after>" Double-tap leader to open command-line mode.
nnoremap <Leader><Leader> :
vnoremap <Leader><Leader> :

" Use Ctrl-K and Ctrl-J to navigate command history.
cnoremap <C-K> <Up>
cnoremap <C-J> <Down>

" Use : to open command-line window.
nnoremap : q:
vnoremap : q:

" Shortcuts for quit.
nnoremap <silent> Q :<C-U>quit<CR>
vnoremap <silent> Q :<C-U>quit<CR>

" Shortcuts for force quit.
nnoremap <silent> <leader>Q :<C-U>quit!<CR>
vnoremap <silent> <leader>Q :<C-U>quit!<CR>

" Shortcut to force quit all.
nnoremap <silent> <C-S-Q> :<C-U>quitall!<CR>

" Double-tap backslash to force write.
nnoremap <silent> \\ :<C-U>write!<CR>
{'fraction_non_alphanumeric': 0.15463917525773196, 'fraction_numerical': 0.0, 'mean_word_length': 4.34, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, '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': '4583343', 'n_tokens_mistral': 462, 'n_tokens_neox': 435, 'n_words': 125}