dotfiles/vimrc

26 lines
488 B
VimL

syntax on
color base16-default-dark
" if exists('theme') && theme == 'light'
" set background=light
" else
" set background=dark
" endif
set background=dark
set ai et si sts=2 sw=2 ts=2
set hid
set hls ic is
set nu rnu
set directory=~/.local/share/vim/swap,/tmp
set undodir=~/.local/share/vim/undo,/tmp
set undofile
autocmd FileType php setl sts=4 sw=4 ts=4
autocmd FileType gitcommit,markdown,text setl nosi spell tw=80 wm=2
autocmd BufWritePre * :%s/\s\+$//e
set rtp+=~/.fzf