silent! source $VIMRUNTIME/defaults.vim

set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
filetype plugin indent on

set background=dark
set termguicolors
syntax enable

" https://www.vim.org/scripts/script.php?script_id=2034
"colorscheme colorful256

" https://github.com/toupeira/vim-desertink
colorscheme desertink

" https://github.com/sainnhe/everforest
"colorscheme everforest

" https://github.com/morhetz/gruvbox
"colorscheme gruvbox

" https://github.com/nanotech/jellybeans.vim
"colorscheme jellybeans

" https://github.com/liuchengxu/space-vim-dark
"colorscheme space-vim-dark

" force transparent background (not recommended for colorful256)
hi Normal    ctermbg=NONE guibg=NONE

" ignore built-in colors except default
set wildignore+=blue.vim,darkblue.vim,delek.vim,desert.vim,elflord.vim,evening.vim,
    \habamax.vim,industry.vim,koehler.vim,lunaperche.vim,morning.vim,murphy.vim,
    \pablo.vim,peachpuff.vim,quiet.vim,ron.vim,shine.vim,slate.vim,torte.vim,zellner.vim

map <esc>OH <home>
map <esc>OF <end>

call plug#begin()

" enable editorconfig support
Plug 'editorconfig/editorconfig-vim'

" highlight Caddyfile
Plug 'isobit/vim-caddyfile'

" show current nesting (in large functions)
Plug 'wellle/context.vim'

" improved file browser
Plug 'preservim/nerdtree'

" git commands in vim
Plug 'tpope/vim-fugitive'

" line group alignment
Plug 'junegunn/vim-easy-align'

" git line status in number line
Plug 'airblade/vim-gitgutter'

" better status bar
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'

call plug#end()

" config git-gutter
let g:gitgutter_terminal_reports_focus=0
set updatetime=500
set signcolumn=number
set number

" style git-gutter
highlight LineNr          cterm=reverse ctermfg=240 ctermbg=none gui=reverse guifg=#585858 guibg=#000000
highlight SignColumn      cterm=reverse ctermfg=255 ctermbg=none gui=reverse guifg=#eeeeee guibg=#000000
highlight GitGutterAdd    cterm=reverse ctermfg=2   ctermbg=none gui=reverse guifg=#008000 guibg=#000000
highlight GitGutterChange cterm=reverse ctermfg=3   ctermbg=none gui=reverse guifg=#808000 guibg=#000000
highlight GitGutterDelete cterm=reverse ctermfg=1   ctermbg=none gui=reverse guifg=#800000 guibg=#000000

" style vim-airline
let g:airline_theme='light'

" style context
let g:context_ellipsis_char='•'
let g:context_border_char='═'

