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

""" === General Setting === {{{

let g:python_host_prog = '/usr/bin/python2.7'
let g:python3_host_prog = '/usr/bin/python3.5'

let mapleader=' '

"cnoreabbrev W w
"cnoreabbrev W! w!
"cnoreabbrev Wa wa
"cnoreabbrev Wq wq
cnoreabbrev WQ Wq
cnoreabbrev wQ wq
cnoreabbrev Q! q!
cnoreabbrev Qall! qall!
cnoreabbrev Q q
cnoreabbrev Qall qall

if has('unnamedplus')
    set clipboard=unnamed,unnamedplus
endif

if has('mouse')
    set mouse=a
endif

" ----------------------------------------------------------------------------------------
" Encoding
" ----------------------------------------------------------------------------------------
set binary
set bomb
set encoding=utf-8 " Set utf8 as standard encoding and en_US as the standard language
"set guifont=Droid\ Sans\ Mono\ for\ Powerline\ Plus\ Nerd\ File\ Types\ 11
set fileencoding=utf-8
set fileencodings=utf-8
set ffs=unix,dos,mac " Use Unix as the standard file type

" Fix backspace indent
set backspace=indent,eol,start " make backspace behave in a sane manner

" ----------------------------------------------------------------------------------------
" Tabs
" ----------------------------------------------------------------------------------------
"set completeopt+=longest
"set noexpandtab   " insert tabs rather than spaces for <Tab>
"set shiftround    " round indent to a multiple of 'shiftwidth'
"set smarttab      " tab respects 'tabstop', 'shiftwidth', and 'softtabstop'
"set softtabstop=4 " edit as if the tabs are 4 characters wide
set expandtab     " Use spaces instead of tabs
set shiftwidth=4  " number of spaces to use for indent and unindent (1 tab == 4 spaces)
set softtabstop=0
set tabstop=4     " the visible width of tabs

" toggle invisible characters
set invlist
set listchars=tab:▸\ ,eol:¬,trail:⋅,extends:❯,precedes:❮
highlight SpecialKey ctermbg=none " make the highlighting of tabs less annoying
set showbreak=↪
nmap <leader>l :set list!<cr>

" ----------------------------------------------------------------------------------------
" UI
" ----------------------------------------------------------------------------------------
colorscheme molokai
filetype indent on                                                                                " load filetype-specific indent files
set background=dark
set cursorline                                                                                    " highlight current line
set hidden                                                                                        " current buffer can be put into background
set laststatus=2                                                                                  " Status bar
set lazyredraw                                                                                    " Don't redraw while executing macros (good performance config)
set number                                                                                        " show line numbers
set ruler                                                                                         " Always show current position
set scrolloff=3
set showcmd                                                                                       " show incomplete commands
set so=7                                                                                          " Set 7 lines to the cursor - when moving vertically using j/k
set statusline=%F%m%r%h%w%=(%{&ff}/%Y)\ (line\ %l\/%L,\ col\ %c)\ " Format the status line
set t_Co=256                                                                                      " Explicitly tell vim that the terminal supports 256 colors
set title
set titleold="Terminal"
set titlestring=%F
set ttyfast                                                                                       " faster redrawing
syntax on                                                                                         " switch syntax highlighting on

" Set font according to system
if has("mac") || has("macunix")
    set gfn=Hack:h14,Source\ Code\ Pro:h15,Menlo:h15
elseif has("win16") || has("win32")
    set gfn=Hack:h14,Source\ Code\ Pro:h12,Bitstream\ Vera\ Sans\ Mono:h11
elseif has("gui_gtk2")
    set gfn=Hack\ 14,Source\ Code\ Pro\ 12,Bitstream\ Vera\ Sans\ Mono\ 11
elseif has("linux")
    set gfn=Hack\ 14,Source\ Code\ Pro\ 12,Bitstream\ Vera\ Sans\ Mono\ 11
elseif has("unix")
    set gfn=Monospace\ 11
endif

" ----------------------------------------------------------------------------------------
"Wildmenu
" ----------------------------------------------------------------------------------------
set wildmenu                                     " Turn on the WiLd menu
" set wildmode=full
set wildmode=list:longest                        " complete files like a shell
set wildignore+=*.aux,*.out,*.toc                " Latex Indermediate files"<commit_msg>2017 snapshot<commit_after>" vim:foldmethod=marker:foldlevel=0

""" === General Setting === {{{

let g:python_host_prog = '/usr/bin/python2.7'
let g:python3_host_prog = '/usr/bin/python3.5'

let mapleader=' '

"cnoreabbrev W w
"cnoreabbrev W! w!
"cnoreabbrev Wa wa
"cnoreabbrev Wq wq
cnoreabbrev WQ Wq
cnoreabbrev wQ wq
cnoreabbrev Q! q!
cnoreabbrev Qall! qall!
cnoreabbrev Q q
cnoreabbrev Qall qall

if has('unnamedplus')
    set clipboard=unnamed,unnamedplus
endif

if has('mouse')
    set mouse=a
endif

" ----------------------------------------------------------------------------------------
" Encoding
" ----------------------------------------------------------------------------------------
set binary
set bomb
set encoding=utf-8 " Set utf8 as standard encoding and en_US as the standard language
"set guifont=Droid\ Sans\ Mono\ for\ Powerline\ Plus\ Nerd\ File\ Types\ 11
set fileencoding=utf-8
set fileencodings=utf-8
set ffs=unix,dos,mac " Use Unix as the standard file type

" Fix backspace indent
set backspace=indent,eol,start " make backspace behave in a sane manner

" ----------------------------------------------------------------------------------------
" Tabs
" ----------------------------------------------------------------------------------------
"set completeopt+=longest
"set noexpandtab   " insert tabs rather than spaces for <Tab>
"set shiftround    " round indent to a multiple of 'shiftwidth'
"set smarttab      " tab respects 'tabstop', 'shiftwidth', and 'softtabstop'
"set softtabstop=4 " edit as if the tabs are 4 characters wide
set expandtab     " Use spaces instead of tabs
set shiftwidth=4  " number of spaces to use for indent and unindent (1 tab == 4 spaces)
set softtabstop=0
set tabstop=4     " the visible width of tabs

" toggle invisible characters
set invlist
set listchars=tab:▸\ ,eol:¬,trail:⋅,extends:❯,precedes:❮
highlight SpecialKey ctermbg=none " make the highlighting of tabs less annoying
set showbreak=↪
nmap <leader>l :set list!<cr>

" ----------------------------------------------------------------------------------------
" UI
" ----------------------------------------------------------------------------------------
colorscheme molokai
filetype indent on                                                " load filetype-specific indent files
set background=dark
set cursorline                                                    " highlight current line
set hidden                                                        " current buffer can be put into background
set laststatus=2                                                  " Status bar
set lazyredraw                                                    " Don't redraw while executing macros (good performance config)
set number                                                        " show line numbers
set ruler                                                         " Always show current position
set scrolloff=3
set showcmd                                                       " show incomplete commands
set so=7                                                          " Set 7 lines to the cursor - when moving vertically using j/k
"set statusline=%F%m%r%h%w%=(%{&ff}/%Y)\ (line\ %l\/%L,\ col\ %c) " Format the status line
set statusline=%t                                                 " tail of the filename
set statusline+=[%{strlen(&fenc)?&fenc:'none'},                   " file encoding
set statusline+=%{&ff}]                                           " file format
set statusline+=%h                                                " help file flag
set statusline+=%m                                                " modified flag
set statusline+=%r                                                " read only flag
set statusline+=%y                                                " filetype
set statusline+=%=                                                " left/right separator
set statusline+=%c,                                               " cursor column
set statusline+=%l/%L                                             " cursor line/total lines
set statusline+=\ %P                                              " percent through file
set t_Co=256                                                      " Explicitly tell vim that the terminal supports 256 colors
set title
set titleold="Terminal"
set titlestring=%F
set ttyfast                                                       " faster redrawing
syntax on                                                         " switch syntax highlighting on

" Set font according to system
if has("mac") || has("macunix")
    set gfn=Hack:h14,Source\ Code\ Pro:h15,Menlo:h15
elseif has("win16") || has("win32")
    set gfn=Hack:h14,Source\ Code\ Pro:h12,Bitstream\ Vera\ Sans\ Mono:h11
elseif has("gui_gtk2")
    set gfn=Hack\ 14,Source\ Code\ Pro\ 12,Bitstream\ Vera\ Sans\ Mono\ 11
elseif has("linux")
    set gfn=Hack\ 14,Source\ Code\ Pro\ 12,Bitstream\ Vera\ Sans\ Mono\ 11
elseif has("unix")
    set gfn=Monospace\ 11
endif

" ----------------------------------------------------------------------------------------
"Wildmenu
" ----------------------------------------------------------------------------------------
set wildmenu                                     " Turn on the WiLd menu
" set wildmode=full
set wildmode=list:longest                        " complete files like a shell
set wildignore+=*.aux,*.out,*.toc                " Latex Indermediate files"
{'fraction_non_alphanumeric': 0.20270531400966182, 'fraction_numerical': 0.011980676328502415, 'mean_word_length': 1.1193693693693694, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 95, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5968219', 'n_tokens_mistral': 2421, 'n_tokens_neox': 2266, 'n_words': 816}