X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/blobdiff_plain/cce6676b9eeed2d9bce8d8422ae90822942f8fe5..3282a56056fb2fc7c8940d525947b723f0216abe:/vimrc?ds=sidebyside diff --git a/vimrc b/vimrc index b212fb0..601a676 100644 --- a/vimrc +++ b/vimrc @@ -21,6 +21,15 @@ set omnifunc=syntaxcomplete#Complete filetype off " required +" ================= +" Install vim-plug if missing +" ================= +let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim' +if empty(glob(data_dir . '/autoload/plug.vim')) + silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' + autocmd VimEnter * PlugInstall --sync | source $MYVIMRC +endif + " ================= " Here be Plugins! " ================= @@ -74,8 +83,7 @@ au BufNewFile,BufRead *.go set noet ts=2 sw=2 sts=2 " Working with Markdown au BufNewFile,BufFilePre,BufRead *.md set filetype=markdown -colorscheme slate -" colorscheme papercolor +colorscheme elflord set number set backupdir=c:\temp,.backup/,~/.backup/,/tmp//