X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/blobdiff_plain/cce6676b9eeed2d9bce8d8422ae90822942f8fe5..712501b37a06f966c91dcd8d88581a4a83e74c03:/vimrc diff --git a/vimrc b/vimrc index b212fb0..09fa0d2 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! " ================= @@ -46,7 +55,7 @@ Plug 'pprovost/vim-ps1' " Plug NLKNguyen/papercolor-theme " " -Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' } +" Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' } call plug#end() @@ -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//