" ~/.vimrc
" Section: Environment {{{1
-set nocompatible
set directory=$HOME/.cache/vim/swap
set backupdir=$HOME/.cache/vim/backup
set undodir=$HOME/.cache/vim/undo
set viminfo+=n$HOME/.local/share/vim/viminfo
"set rtp=~/$HOME/.config/vim,~/$HOME/.config/vim/after,$VIM,$VIMRUNTIME
+set nocompatible
if empty(glob('$HOME/.config/vim/autoload/plug.vim'))
+ silent !mkdir -p $HOME/.cache/vim/swap > /dev/null 2>&1
+ silent !mkdir -p $HOME/.cache/vim/backup > /dev/null 2>&1
+ silent !mkdir -p $HOME/.cache/vim/undo > /dev/null 2>&1
silent !curl -fLo $HOME/.config/vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall | source $MYVIMRC
endif
-
if filereadable(expand('$HOME/.config/vim/autoload/plug.vim'))
source $HOME/.config/vim/autoload/plug.vim
call plug#begin('$HOME/.config/vim/plugged')