<commit_before>"scriptencoding utf-8

" === PLUGINS

" Download vim-plug if not installed
if empty(glob('~/.config/nvim/autoload/plug.vim'))
  execute '!curl -s -fLo ~/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
endif

" Define plugins
" Run :PlugInstall to install them
call plug#begin('~/.config/nvim/plugged')
  Plug 'airblade/vim-gitgutter'                                   " Shows git diff in the gutter
  Plug 'ctrlpvim/ctrlp.vim'                                       " Fuzzy file finder
  Plug 'dracula/vim', { 'as': 'dracula' }                         " Dracula color scheme
  Plug 'godlygeek/tabular'                                        " Text alignment
  Plug 'neomake/neomake'                                          " Async linting and make
  Plug 'scrooloose/nerdtree', { 'on':  'NERDTreeToggle' }         " Filebrowser
  Plug 'sheerun/vim-polyglot'                                     " Collection of language packs (Ansible, Puppet, TF, ...)
  Plug 'sjl/gundo.vim'                                            " Visual undo tree
  "Plug 'Valloric/YouCompleteMe', { 'do': './install.py' }         " Code completion
  Plug 'vim-airline/vim-airline'                                  " Cool statusline
  Plug 'Xuyuanp/nerdtree-git-plugin', { 'on':  'NERDTreeToggle' } " Show Git status in NERDTreeToggle
  " Plugins to play nice with tmux
  Plug 'tmux-plugins/vim-tmux-focus-events'
  Plug 'roxma/vim-tmux-clipboard'
call plug#end()


" === THEMING

" Use 24-bit (true-color) mode in Neovim 0.1.5+, Vim 7.4.1799+
if (has('termguicolors'))
  set termguicolors
endif

set background=dark
colorscheme dracula
let g:enable_bold_font=1


" === SETTINGS

" Enable the Python providers
let g:python_host_prog  = '/usr/bin/python'
let g:python3_host_prog = '/usr/bin/python3'

" Change cursor depending on mode
" http://vim.wikia.com/wiki/Change_cursor_shape_in_different_modes
let &t_SI = "\<Esc>]50;CursorShape=1\x7"
let &t_SR = "\<Esc>]50;CursorShape=2\x7"
let &t_EI = "\<Esc>]50;CursorShape=0\x7"

" Limit syntax highlighting (performance killer)
set synmaxcol=256
syntax sync minlines=256

set clipboard=unnamed                       " Use the OS clipboard
set colorcolumn=80                          " Mark the 80th column
set cursorline                              " Highlight current line
set expandtab                               " Use spaces instead of tabs
set fixeol                                  " Add blank line at the end of a file if missing
set gdefault                                " Add the g flag to search/replace by default
set ignorecase                              " Ignore case of searches
set lazyredraw                              " Buffer screen updates
set list                                    " Show invisible characters
set listchars=tab:▸\ ,trail:·,eol:¬,nbsp:_  " Set invisible characters
set modeline                                " Respect modeline in files
set nostartofline                           " Don’t reset cursor to start of line when moving around.
set number                                  " Enable line numbers
set relativenumber                          " Use relative line numbers
set shiftwidth=2                            " Make indentation (>) as wide as two spaces
set tabstop=2                               " Make tabs as wide as two spaces


" === PLUGINSETTINGS

" Set Airline (statusline) theme
let g:airline_theme='dracula'
let g:airline#extensions#tabline#enabled=1

augroup vimrc
  autocmd!

  " Run Neomake on every write
  autocmd BufWritePost * Neomake

  " Open NERDTree automatically when opening a directory
  "autocmd StdinReadPre * let s:std_in=1
  "autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | endif
augroup END


" === KEYBINDS

let g:mapleader=','                                 " Change mapleader
nnoremap <F2> :set invpaste paste?<CR>            " Bind F2 to pastemode (no auto-indentation)
set pastetoggle=<F2>
nnoremap <F3> :set nolist!<CR>                    " Bind F3 to hide/unhide special characters
noremap <leader>W :w !sudo tee % > /dev/null<CR>  " Save a file as root (,W)
map <C-n> :NERDTreeToggle<CR>                     " Bind C-n to NERDTree<commit_msg>Vim: Disable unused plugins<commit_after>"scriptencoding utf-8

" === PLUGINS

" Download vim-plug if not installed
if empty(glob('~/.config/nvim/autoload/plug.vim'))
  execute '!curl -s -fLo ~/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
endif

" Define plugins
" Run :PlugInstall to install them
call plug#begin('~/.config/nvim/plugged')
  Plug 'airblade/vim-gitgutter'                                   " Shows git diff in the gutter
  "Plug 'ctrlpvim/ctrlp.vim'                                       " Fuzzy file finder
  Plug 'dracula/vim', { 'as': 'dracula' }                         " Dracula color scheme
  Plug 'godlygeek/tabular'                                        " Text alignment
  Plug 'neomake/neomake'                                          " Async linting and make
  "Plug 'scrooloose/nerdtree', { 'on':  'NERDTreeToggle' }         " Filebrowser
  Plug 'sheerun/vim-polyglot'                                     " Collection of language packs (Ansible, Puppet, TF, ...)
  "Plug 'sjl/gundo.vim'                                            " Visual undo tree
  "Plug 'Valloric/YouCompleteMe', { 'do': './install.py' }         " Code completion
  Plug 'vim-airline/vim-airline'                                  " Cool statusline
  "Plug 'Xuyuanp/nerdtree-git-plugin', { 'on':  'NERDTreeToggle' } " Show Git status in NERDTreeToggle
  " Plugins to play nice with tmux
  Plug 'tmux-plugins/vim-tmux-focus-events'
  Plug 'roxma/vim-tmux-clipboard'
call plug#end()


" === THEMING

" Use 24-bit (true-color) mode in Neovim 0.1.5+, Vim 7.4.1799+
if (has('termguicolors'))
  set termguicolors
endif

colorscheme dracula
let g:enable_bold_font=1


" === SETTINGS

" Enable the Python providers
let g:python_host_prog  = '/usr/bin/python'
let g:python3_host_prog = '/usr/bin/python3'

" Change cursor depending on mode
" http://vim.wikia.com/wiki/Change_cursor_shape_in_different_modes
let &t_SI = "\<Esc>]50;CursorShape=1\x7"
let &t_SR = "\<Esc>]50;CursorShape=2\x7"
let &t_EI = "\<Esc>]50;CursorShape=0\x7"

" Limit syntax highlighting (performance killer)
set synmaxcol=256
syntax sync minlines=256

set clipboard=unnamed                       " Use the OS clipboard
set colorcolumn=80                          " Mark the 80th column
set cursorline                              " Highlight current line
set expandtab                               " Use spaces instead of tabs
set fixeol                                  " Add blank line at the end of a file if missing
set gdefault                                " Add the g flag to search/replace by default
set ignorecase                              " Ignore case of searches
set lazyredraw                              " Buffer screen updates
set list                                    " Show invisible characters
set listchars=tab:>\ ,trail:·,eol:¬,nbsp:_  " Set invisible characters
set modeline                                " Respect modeline in files
set nostartofline                           " Don’t reset cursor to start of line when moving around.
set number                                  " Enable line numbers
set relativenumber                          " Use relative line numbers
set shiftwidth=2                            " Make indentation (>) as wide as two spaces
set tabstop=2                               " Make tabs as wide as two spaces


" === PLUGINSETTINGS

" Set Airline (statusline) theme
let g:airline_theme='dracula'
let g:airline#extensions#tabline#enabled=1

augroup vimrc
  autocmd!

  " Run Neomake on every write
  autocmd BufWritePost * Neomake

  " Open NERDTree automatically when opening a directory
  "autocmd StdinReadPre * let s:std_in=1
  "autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | endif
augroup END


" === KEYBINDS

let g:mapleader=','                                 " Change mapleader
nnoremap <F2> :set invpaste paste?<CR>            " Bind F2 to pastemode (no auto-indentation)
set pastetoggle=<F2>
nnoremap <F3> :set nolist!<CR>                    " Bind F3 to hide/unhide special characters
noremap <leader>W :w !sudo tee % > /dev/null<CR>  " Save a file as root (,W)
"map <C-n> :NERDTreeToggle<CR>                     " Bind C-n to NERDTree
{'fraction_non_alphanumeric': 0.09616942483508853, 'fraction_numerical': 0.011341279944450874, 'mean_word_length': 1.9882434301521439, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 32, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 48, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1263493', 'n_tokens_mistral': 2766, 'n_tokens_neox': 2560, 'n_words': 748}