<commit_before>set nocompatible

" Prevent nesting

if $NEOVIM == 'true'
	echo 'Nesting is disabled.'
	q!
endif
let $NEOVIM = 'true'

" Plugins (thank god for vim-plug and <NAME>)

" call plug#begin('~/.config/nvim/bundle')

" Plug 'Shougo/deoplete.nvim'
" Plug 'luochen1990/rainbow'
" Plug 'scrooloose/nerdtree'
" Plug 'tpope/vim-surround'
" Plug 'ctrlpvim/ctrlp.vim'
" Plug 'ntpeters/vim-better-whitespace'
" Plug 'itchyny/lightline.vim'
" Plug 'sheerun/vim-polyglot'
" Plug 'vim-pandoc/vim-pandoc-syntax'

" call plug#end()

call deoplete#enable()


" GUI and colors

set mouse=a guicursor= nu rnu noshowmode
highlight Statement ctermfg=yellow
highlight LineNr ctermfg=darkgrey
highlight CursorLineNr ctermfg=grey
highlight ColorColumn ctermbg=black
highlight FoldColumn ctermbg=none
highlight Pmenu ctermbg=darkgrey


" Keyboard mappings

nmap <C-w> :w<CR>
nmap <C-q> :q<CR>
nnoremap <A-t> :Term<CR>
imap <C-w> <ESC>:w<CR>i
imap <C-q> <ESC>:q<CR>
imap <C-b> <ESC>diwi
inoremap <A-t> <ESC>:Term<CR>
inoremap <silent><expr><CR> pumvisible() ? deoplete#mappings#close_popup()."\<CR>" : "\<CR>"
tnoremap <Esc> <C-\><C-n>
tnoremap <A-t> <C-\><C-n>:Term<CR>

for dirkey in ['h', 'j', 'k', 'l']
	execute 'nnoremap <A-' . dirkey . '> <C-w>' . dirkey
	execute 'inoremap <A-' . dirkey . '> <ESC><C-w>' . dirkey . 'i'
	execute 'tnoremap <A-' . dirkey . '> <C-\><C-n><C-w>' . dirkey . 'i'
endfor

" EasyMotion

let g:EasyMotion_do_mapping = 0 " Disable default mappings
nmap w <Plug>(easymotion-w)
nmap b <Plug>(easymotion-b)

<commit_msg>Remove unused terminal shortcuts and add nerdtree shortcut to vim config<commit_after>set nocompatible

" Prevent nesting

if $NEOVIM == 'true'
	echo 'Nesting is disabled.'
	q!
endif
let $NEOVIM = 'true'

" Autocomplete

call deoplete#enable()


" GUI and colors

set mouse=a guicursor= nu rnu noshowmode
highlight Statement ctermfg=yellow
highlight LineNr ctermfg=darkgrey
highlight CursorLineNr ctermfg=grey
highlight ColorColumn ctermbg=black
highlight FoldColumn ctermbg=none
highlight Pmenu ctermbg=darkgrey


" Keyboard mappings

nmap <C-w> :w<CR>
nmap <C-q> :q<CR>
nmap <C-t> :NERDTreeToggle<CR>
imap <C-w> <ESC>:w<CR>i
imap <C-q> <ESC>:q<CR>
imap <C-b> <ESC>diwi
inoremap <silent><expr><CR> pumvisible() ? deoplete#mappings#close_popup()."\<CR>" : "\<CR>"
tnoremap <Esc> <C-\><C-n>

for dirkey in ['h', 'j', 'k', 'l']
	execute 'nnoremap <A-' . dirkey . '> <C-w>' . dirkey
	execute 'inoremap <A-' . dirkey . '> <ESC><C-w>' . dirkey . 'i'
	execute 'tnoremap <A-' . dirkey . '> <C-\><C-n><C-w>' . dirkey . 'i'
endfor

" Close file tree on exit

autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif


" EasyMotion

let g:EasyMotion_do_mapping = 0 " Disable default mappings
nmap w <Plug>(easymotion-w)
nmap b <Plug>(easymotion-b)


{'fraction_non_alphanumeric': 0.17158081705150977, 'fraction_numerical': 0.002486678507992895, 'mean_word_length': 4.620758483033932, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 77, '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': '6922312', 'n_tokens_mistral': 1286, 'n_tokens_neox': 1185, 'n_words': 288}