" ~/.vimrc
set nocompatible
-if empty(glob('$HOME/.vim/autoload/plug.vim'))
- silent !curl -fLo $HOME/.vim/autoload/plug.vim --create-dirs
+if empty(glob('$HOME/.config/vim/autoload/plug.vim'))
+ 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
-call plug#begin('$HOME/.vim/plugged')
+
+if filereadable(expand('$HOME/.config/vim/autoload/plug.vim'))
+source $HOME/.config/vim/autoload/plug.vim
+call plug#begin('$HOME/.config/vim/plugged')
"Plug 'tpope/vim-sensible'
"Plug 'tpope/vim-ragtag'
Plug 'vim-scripts/a.vim'
call plug#end()
-
+endif
" Section: Options {{{1
" ---------------------
set undodir=~/.cache/vim/undo " vim will not create this directory.
set directory=~/.cache/vim/swap " vim will not create this directory.
set backupdir=~/.cache/vim/backup " vim will not create this directory.
-set viminfo+=n~/.cache/vim/viminfo
+set viminfo+=n~/.local/share/vim/viminfo
" Plugin Settings {{{2
endif
" }}}1
-if filereadable(expand("$HOME/.vimrc_local"))
- source $HOME/.vimrc_local
+if filereadable(expand('$HOME/.config/vim/vimrc_local'))
+ source $HOME/.config/vim/vimrc_local
endif