" basic yummies 
syntax on
set showcmd
set incsearch
set hlsearch
set number
set relativenumber
set virtualedit=all

" basic file explorer (p to preview hovered file, ctrl+w,z to close)
let g:netrw_winsize = 25
let g:netrw_banner = 0
let g:netrw_liststyle = 3
let g:netrw_altv = 1
let g:netrw_alto = 1
let g:netrw_browse_split = 4
let g:netrw_preview = 1
map <silent> _ :Lexplore<CR>

" indentation
set tabstop=2
set shiftwidth=2
set expandtab
set autoindent
set list
set listchars=multispace:\ \ ▸

" folding
set foldmethod=indent
set foldnestmax=20
nmap U :syntax sync fromstart<cr>:redraw!<cr> " fix syntax highlighting glitch

" splitting
set splitright
set splitbelow
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>

" plugins
call plug#begin()
Plug 'dense-analysis/ale'
Plug 'dylanaraps/wal.vim'
call plug#end()

" set colorscheme
colorscheme wal

