" ---------------------
set nocompatible
-set runtimepath+=$HOME/.config/vim
-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
-
-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
+set runtimepath+=~/.config/vim
+set directory=~/.cache/vim/swap
+set backupdir=~/.cache/vim/backup
+set undodir=~/.cache/vim/undo
+set viminfo+=n~/.local/share/vim/viminfo
+
+if empty(glob('~/.config/vim/autoload/plug.vim'))
+ silent !mkdir -p .cache/vim/swap > /dev/null 2>&1
+ silent !mkdir -p .cache/vim/backup > /dev/null 2>&1
+ silent !mkdir -p .cache/vim/undo > /dev/null 2>&1
+ silent !curl -fLo .config/vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall | source $MYVIMRC
endif
" section: plugins {{{1
" ---------------------
-call plug#begin('$HOME/.config/vim/plugged')
+call plug#begin('~/.config/vim/plugged')
"Plug 'tpope/vim-sensible'
"Plug 'tpope/vim-ragtag'
endif
" }}}1
-if filereadable(expand('$HOME/.config/vim/vimrc_local'))
- source $HOME/.config/vim/vimrc_local
+if filereadable(expand('~/.config/vim/vimrc_local'))
+ source ~/.config/vim/vimrc_local
endif