From: Jannik Zander Date: Sat, 21 May 2016 06:05:34 +0000 (+0200) Subject: Remove empty vim folders X-Git-Url: https://git.zndr.dk/?a=commitdiff_plain;h=7b5cb373b1fcf8eba1293dd6cf204bbab3def68d;p=dotfiles.git Remove empty vim folders --- diff --git a/.cache/vim/backup/README.md b/.cache/vim/backup/README.md deleted file mode 100644 index 77b7d2e..0000000 --- a/.cache/vim/backup/README.md +++ /dev/null @@ -1 +0,0 @@ -# Just an empty folder for vim backup files diff --git a/.cache/vim/swap/README.md b/.cache/vim/swap/README.md deleted file mode 100644 index c5e7c56..0000000 --- a/.cache/vim/swap/README.md +++ /dev/null @@ -1 +0,0 @@ -# Just an empty folder for vim swap files diff --git a/.cache/vim/undo/README.md b/.cache/vim/undo/README.md deleted file mode 100644 index f10015a..0000000 --- a/.cache/vim/undo/README.md +++ /dev/null @@ -1 +0,0 @@ -# Just an empty folder for vim undo files diff --git a/.vimrc b/.vimrc index 93b117f..1f1f408 100644 --- a/.vimrc +++ b/.vimrc @@ -1,20 +1,22 @@ " ~/.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')