From: Jannik Zander Date: Fri, 20 May 2016 22:13:47 +0000 (+0200) Subject: Move vim config to .config/vim X-Git-Url: https://git.zndr.dk/?a=commitdiff_plain;h=41784b2a2665ff85f09d60d4184b9ca7ed461bd9;p=dotfiles.git Move vim config to .config/vim --- diff --git a/.vimrc b/.vimrc index a50ab71..359cf9f 100644 --- a/.vimrc +++ b/.vimrc @@ -1,13 +1,16 @@ " ~/.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' @@ -29,7 +32,7 @@ Plug 'scrooloose/nerdtree' Plug 'vim-scripts/a.vim' call plug#end() - +endif " Section: Options {{{1 " --------------------- @@ -85,7 +88,7 @@ set number 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 @@ -208,6 +211,6 @@ if (&t_Co > 2 || has("gui_running")) && has("syntax") 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