substitute ~/.config with $XDG_CONFIG_HOME

This commit is contained in:
Dennis Lee
2020-04-04 13:00:08 -07:00
parent 82cf021b78
commit a29eaec506
21 changed files with 56 additions and 56 deletions

View File

@@ -1,13 +1,13 @@
let mapleader =","
if ! filereadable(expand('~/.config/nvim/autoload/plug.vim'))
if ! filereadable(expand('$XDG_CONFIG_HOME/nvim/autoload/plug.vim'))
echo "Downloading junegunn/vim-plug to manage plugins..."
silent !mkdir -p ~/.config/nvim/autoload/
silent !curl "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" > ~/.config/nvim/autoload/plug.vim
silent !mkdir -p $XDG_CONFIG_HOME/nvim/autoload/
silent !curl "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" > $XDG_CONFIG_HOME/nvim/autoload/plug.vim
autocmd VimEnter * PlugInstall
endif
call plug#begin('~/.config/nvim/plugged')
call plug#begin('$XDG_CONFIG_HOME/nvim/plugged')
Plug 'tpope/vim-surround'
Plug 'scrooloose/nerdtree'
Plug 'junegunn/goyo.vim'