X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/blobdiff_plain/be26097c02eec97da8a8d9195e7a49e5a5bb4f43..c656b6f73876cfbfa323bdc06e08d87e6089c1e6:/vimrc diff --git a/vimrc b/vimrc index a4ca635..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,10 +83,10 @@ 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=.backup/,~/.backup/,/tmp// -set directory=.swp/,~/.swp/,/tmp// -set undodir=.undo/,~/.undo/,/tmp// +set backupdir=c:\temp,.backup/,~/.backup/,/tmp// +set directory=c:\temp,.swp/,~/.swp/,/tmp// +set undodir=c:\temp,.undo/,~/.undo/,/tmp// +set backspace=indent,eol,start " Do not be pedantic about backspace.