dotfiles/vimrc
Josh Sherman d929676725
[vim] got rid of directory
Kind of flattening where I can, since I don't house anything in the vim
directory except my rc files these days, there's no reason to have it as
part of the repo
2017-12-23 17:32:56 -06:00

17 lines
379 B
VimL

syntax on
set ai et si sts=2 sw=2 ts=2
set hls ic is
set nu rnu
set directory=~/.local/share/vim/swap,/tmp
set undodir=~/.local/share/vim/undo,/tmp
set undofile
autocmd BufNewFile,BufRead *.es6 setl ft=javascript
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