<commit_before>" vim:foldmethod=marker:foldlevel=100

" Plugins {{{
call plug#begin()

    " Color schemes {{{
    Plug 'altercation/vim-colors-solarized'
    Plug 'jonathanfilip/vim-lucius'
    Plug 'jnurmine/Zenburn'
    " }}}

    Plug 'airblade/vim-gitgutter' " Shows git diff markers in gutter
    Plug 'tpope/vim-fugitive' " Git commands as G* Ex commands


    Plug 'junegunn/fzf' " Required for fzf.vim
    Plug 'junegunn/fzf.vim' " fzf fuzzy finder, or way to quickly filter

    Plug 'editorconfig/editorconfig-vim' " Respect .editorconfig files - http://editorconfig.org/

call plug#end()
" }}}


" editorconfig/editorconfig-vim {{{

" Ignore .editorconfig rules for the following wildcarded array:
let g:EditorConfig_exclude_patterns = ['fugitive://.*', 'scp://.*']

" }}}


" Color schemes/themes {{{
set termguicolors " Use 24-bit, modern terminal, escape codes for commands
set background=dark " Seattle? Dark. Not too dark. Just dark.

if globpath(&runtimepath, 'colors/lucius.vim', 1) != ''
    colorscheme lucius " Flavor of the week

    if !empty($CONEMUBUILD)
        " ConEmu should use LuciusBlack to get around terminal color issues
        LuciusBlack
    endif
endif
" }}}


" General {{{
set clipboard+=unnamedplus " Use sys-clipboard, instead of '*','+' registers
set tabstop=4 " Tabs count for X spaces
set shiftwidth=4 " Indent operations shift X spaces
set softtabstop=-1 " Use {shiftwidth} for value. Allows {tabstop} to stay at 8
set expandtab " Tabs count for {tabstop} spaces
                   " CTRL-V<Tab> - Insert an actual tab character
set ignorecase " Searches ignore case. w/smartcase, only all lower-case searches
set smartcase " w/ignorecase opt, case sensitive on mixed case searches
set showmatch " Highlight matching brackets as you cursor over them
set number " Turn on line numbers
set wrap! " Line wrapping off
" }}}


" Plugin: fzf.vim {{{

let g:fzf_command_prefix = 'Fzf' " Prefixes all fzf commands with Fzf
                                 " Allows tab to easily locate commands

" e.g. Replaces word completion with fzf version
"inoremap <expr> <c-x><c-k> fzf#vim#complete#word({'left': '15%'})

" }}}


" Key Mappings and Shortcuts {{{
tnoremap <Esc> <C-\><C-n> 		" Ensure ESC also escapes in :terminal mode

" alt+(hjkl): Maps A+hjkl in terminal/insert/normal
tnoremap <A-h> <C-\><C-N><C-w>h
tnoremap <A-j> <C-\><C-N><C-w>j
tnoremap <A-k> <C-\><C-N><C-w>k
tnoremap <A-l> <C-\><C-N><C-w>l
inoremap <A-h> <C-\><C-N><C-w>h
inoremap <A-j> <C-\><C-N><C-w>j
inoremap <A-k> <C-\><C-N><C-w>k
inoremap <A-l> <C-\><C-N><C-w>l
nnoremap <A-h> <C-w>h
nnoremap <A-j> <C-w>j
nnoremap <A-k> <C-w>k
nnoremap <A-l> <C-w>l
" }}}


augroup filetype_markdown
    autocmd!
    " Turn spell check on for the buffer
    autocmd BufNewFile,BufRead *.md setlocal spell
    autocmd BufNewFile,BufRead *.rdoc setlocal spell
augroup END
<commit_msg>neovim - vim-fugitive keybindings<commit_after>" vim:foldmethod=marker:foldlevel=100

" Plugins {{{
call plug#begin()

    " Color schemes {{{
    Plug 'altercation/vim-colors-solarized'
    Plug 'jonathanfilip/vim-lucius'
    Plug 'jnurmine/Zenburn'
    " }}}

    Plug 'airblade/vim-gitgutter' " Shows git diff markers in gutter
    Plug 'tpope/vim-fugitive' " Git commands as G* Ex commands


    Plug 'junegunn/fzf' " Required for fzf.vim
    Plug 'junegunn/fzf.vim' " fzf fuzzy finder, or way to quickly filter

    Plug 'editorconfig/editorconfig-vim' " Respect .editorconfig files - http://editorconfig.org/

call plug#end()
" }}}


" editorconfig/editorconfig-vim {{{

" Ignore .editorconfig rules for the following wildcarded array:
let g:EditorConfig_exclude_patterns = ['fugitive://.*', 'scp://.*']

" }}}


" Color schemes/themes {{{
set termguicolors " Use 24-bit, modern terminal, escape codes for commands
set background=dark " Seattle? Dark. Not too dark. Just dark.

if globpath(&runtimepath, 'colors/lucius.vim', 1) != ''
    colorscheme lucius " Flavor of the week

    if !empty($CONEMUBUILD)
        " ConEmu should use LuciusBlack to get around terminal color issues
        LuciusBlack
    endif
endif
" }}}


" General {{{
set clipboard+=unnamedplus " Use sys-clipboard, instead of '*','+' registers
set tabstop=4 " Tabs count for X spaces
set shiftwidth=4 " Indent operations shift X spaces
set softtabstop=-1 " Use {shiftwidth} for value. Allows {tabstop} to stay at 8
set expandtab " Tabs count for {tabstop} spaces
                   " CTRL-V<Tab> - Insert an actual tab character
set ignorecase " Searches ignore case. w/smartcase, only all lower-case searches
set smartcase " w/ignorecase opt, case sensitive on mixed case searches
set showmatch " Highlight matching brackets as you cursor over them
set number " Turn on line numbers
set wrap! " Line wrapping off
" }}}


" Plugin: fzf.vim {{{

let g:fzf_command_prefix = 'Fzf' " Prefixes all fzf commands with Fzf
                                 " Allows tab to easily locate commands

" e.g. Replaces word completion with fzf version
"inoremap <expr> <c-x><c-k> fzf#vim#complete#word({'left': '15%'})

" }}}


" Plugin: vim-fugitive {{{

    " (:Gstatus based)
    nnoremap <Leader>g?     :help fugitive<CR>
    nnoremap <Leader>g<CR>  :Gedit<CR>

    " git commit (:Gstatus based)
    nnoremap <Leader>gcA    :Gcommit --amend --reuse-message=HEAD
    nnoremap <Leader>gca    :Gcommit --amend
    nnoremap <Leader>gcva   :Gcommit --amend --verbose
    nnoremap <Leader>gcc    :Gcommit
    nnoremap <Leader>gcvc   :Gcommit --verbose

    " git diff (:Gstatus based)
    nnoremap <Leader>gD     :Gdiff<CR>
    nnoremap <Leader>gds    :Gsdiff<CR>
    nnoremap <Leader>gdv    :Gvdiff<CR>

    nnoremap <Leader>gpa    :Git add --patch
    nnoremap <Leader>gpr    :Git reset --patch

    " status
    nnoremap <Leader>gs     :Gstatus<CR>

    " Misc
    nnoremap <Leader>gl     :silent! Glog<CR>:bot copen<CR>
    nnoremap <Leader>gb     :Gblame<CR>
    nnoremap <Leader>gB     :Gbrowse<CR>
    nnoremap <Leader>ge     :Gedit<CR>
    nnoremap <Leader>gM     :Gmove<Space>
" }}}


" Key Mappings and Shortcuts {{{
tnoremap <Esc> <C-\><C-n> 		" Ensure ESC also escapes in :terminal mode

" alt+(hjkl): Maps A+hjkl in terminal/insert/normal
tnoremap <A-h> <C-\><C-N><C-w>h
tnoremap <A-j> <C-\><C-N><C-w>j
tnoremap <A-k> <C-\><C-N><C-w>k
tnoremap <A-l> <C-\><C-N><C-w>l
inoremap <A-h> <C-\><C-N><C-w>h
inoremap <A-j> <C-\><C-N><C-w>j
inoremap <A-k> <C-\><C-N><C-w>k
inoremap <A-l> <C-\><C-N><C-w>l
nnoremap <A-h> <C-w>h
nnoremap <A-j> <C-w>j
nnoremap <A-k> <C-w>k
nnoremap <A-l> <C-w>l
" }}}


augroup filetype_markdown
    autocmd!
    " Turn spell check on for the buffer
    autocmd BufNewFile,BufRead *.md setlocal spell
    autocmd BufNewFile,BufRead *.rdoc setlocal spell
augroup END

{'fraction_non_alphanumeric': 0.13808958765944823, 'fraction_numerical': 0.0035597745476119848, 'mean_word_length': 3.350322580645161, 'pattern_counts': {'":': 0, '<': 128, '<?xml version=': 0, '>': 128, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3655475', 'n_tokens_mistral': 2655, 'n_tokens_neox': 2498, 'n_words': 693}