<commit_before>" Plugins
call plug#begin('~/.vim/plugged')
Plug 'ctrlpvim/ctrlp.vim'
Plug 'dockyard/vim-easydir'
Plug 'junegunn/vim-easy-align'
Plug 'lmeijvogel/vim-yaml-helper'
Plug 'machakann/vim-highlightedyank'
Plug 'rizzatti/dash.vim'
Plug 'mileszs/ack.vim'
Plug 'sheerun/vim-polyglot'
Plug 'tomtom/tcomment_vim'
Plug 'tpope/vim-eunuch'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-vinegar'
call plug#end()

" Wildmenu
set wildmenu
set wildmode=longest,full

" Search
set ignorecase " Case insensitive search
set incsearch  " Makes search act like search in modern browsers
set hlsearch   " Highlight search results

" Whitespace
set list                      " Show invisibles by default
set listchars=tab:▸\ ,trail:· " Show tabs, trailing whitespace and end of lines
set nowrap                    " Do not wrap lines
set expandtab                 " Use spaces instead of tabs
set smarttab                  " Be smart when using tabs ;-)
set softtabstop=2             " 1 tab is 2 spaces
set shiftwidth=2
set tabstop=2
set foldmethod=indent         " Fold based on indentation.
set foldlevelstart=99         " Expand all folds by default.

" Disable backup. No swap files.
set nobackup
set nowb
set noswapfile

" Bindings
nnoremap <ESC> :noh<CR><ESC>|"                              Clear highlights
nmap <LEADER>l :set list!<CR>|"                             Toggle list characters (Invisibles)
map <LEADER>z :set spell!<CR>|"                             Toggle spell
map <LEADER>f :Ack!<Space>|"                                Search CWD
map <LEADER>F :Ack! <C-r><C-w><CR>|"                        Search CWD with word under cursor
nnoremap ? :%s/\<<C-r><C-w>\>//g<Left><Left>|"              Replace in buffer with word under cursor
nnoremap <LEADER>? :cdo %s/\<<C-r><C-w>\>//g<Left><Left>|"  Replace CWD with word under cursor
map <C-B> :CtrlPBuffer<CR>|"                                CtrlP in buffer mode
nnoremap Q <nop>|"                                          Don't enter Ex mode
vmap <Enter> <Plug>(EasyAlign)|"                            EasyAlign
runtime macros/matchit.vim |"                               Match pairs of keywords (Eg: def, end)
noremap <LEADER>y "*y|"                                     Copy to system's clipboard<commit_msg>Binding for block comments.<commit_after>" Plugins
call plug#begin('~/.vim/plugged')
Plug 'ctrlpvim/ctrlp.vim'
Plug 'dockyard/vim-easydir'
Plug 'junegunn/vim-easy-align'
Plug 'lmeijvogel/vim-yaml-helper'
Plug 'machakann/vim-highlightedyank'
Plug 'rizzatti/dash.vim'
Plug 'mileszs/ack.vim'
Plug 'sheerun/vim-polyglot'
Plug 'tomtom/tcomment_vim'
Plug 'tpope/vim-eunuch'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-vinegar'
call plug#end()

" Wildmenu
set wildmenu
set wildmode=longest,full

" Search
set ignorecase " Case insensitive search
set incsearch  " Makes search act like search in modern browsers
set hlsearch   " Highlight search results

" Whitespace
set list                      " Show invisibles by default
set listchars=tab:▸\ ,trail:· " Show tabs, trailing whitespace and end of lines
set nowrap                    " Do not wrap lines
set expandtab                 " Use spaces instead of tabs
set smarttab                  " Be smart when using tabs ;-)
set softtabstop=2             " 1 tab is 2 spaces
set shiftwidth=2
set tabstop=2
set foldmethod=indent         " Fold based on indentation.
set foldlevelstart=99         " Expand all folds by default.

" Disable backup. No swap files.
set nobackup
set nowb
set noswapfile

" Bindings
nnoremap <ESC> :noh<CR><ESC>|"                              Clear highlights
nmap <LEADER>l :set list!<CR>|"                             Toggle list characters (Invisibles)
map <LEADER>z :set spell!<CR>|"                             Toggle spell
map <LEADER>f :Ack!<Space>|"                                Search CWD
map <LEADER>F :Ack! <C-r><C-w><CR>|"                        Search CWD with word under cursor
nnoremap ? :%s/\<<C-r><C-w>\>//g<Left><Left>|"              Replace in buffer with word under cursor
nnoremap <LEADER>? :cdo %s/\<<C-r><C-w>\>//g<Left><Left>|"  Replace CWD with word under cursor
vmap gcb :TCommentBlock<CR>|"                               Create an empty, inline comment
map <C-B> :CtrlPBuffer<CR>|"                                CtrlP in buffer mode
nnoremap Q <nop>|"                                          Don't enter Ex mode
vmap <Enter> <Plug>(EasyAlign)|"                            EasyAlign
runtime macros/matchit.vim |"                               Match pairs of keywords (Eg: def, end)
noremap <LEADER>y "*y|"                                     Copy to system's clipboard
{'fraction_non_alphanumeric': 0.10324925181701582, 'fraction_numerical': 0.002992731936725096, 'mean_word_length': 2.1593517893315326, 'pattern_counts': {'":': 0, '<': 64, '<?xml version=': 0, '>': 64, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '877560', 'n_tokens_mistral': 1564, 'n_tokens_neox': 1453, 'n_words': 448}