dotfiles/vim/.vimrc
Josh Sherman 1769b16f23
Getting crazy with vim-plug
In an effort to reduce the amount of manual lifting being done, I'm
finally coming back around to using a plugin manager for [n]vim.

Also formally swapping `vim` references for `nvim`.
2022-02-27 14:52:26 -06:00

44 lines
1.1 KiB
VimL

" Download vim-plug if it's not already present
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
endif
call plug#begin()
" Solarized, without the bullshit
Plug 'romainl/flattened'
" File exploration and navigation
Plug 'junegunn/fzf.vim'
" Languages and syntax
Plug 'sheerun/vim-polyglot'
" Style guide and linting
Plug 'dense-analysis/ale'
Plug 'editorconfig/editorconfig-vim'
" TypeScript
Plug 'leafgarland/typescript-vim'
Plug 'Quramy/tsuquyomi'
call plug#end()
syntax on
color flattened_dark
set background=dark
" Ensures misspellings are highlighted
hi SpellBad ctermfg=white ctermbg=red
set ai et si sts=2 sw=2 ts=2
set cc=80,100,120
set hid
set hls ic is
set nu rnu
set undofile
autocmd FileType php,python setl sts=4 sw=4 ts=4
autocmd FileType gitcommit,markdown,text setl nosi spell
autocmd FileType gitcommit setl cc=50,72 tw=72
autocmd FileType markdown,text setl tw=80 wm=2
autocmd BufWritePre * :%s/\s\+$//e
set rtp+=~/.fzf