X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/blobdiff_plain/9e149715ecdae534da8bceb5b3972cc614de732f..fbb5d457a4ff761378a6a424ea1965eb63a4cd5c:/vimrc?ds=inline diff --git a/vimrc b/vimrc index 9421b2d..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! " ================= @@ -44,6 +53,9 @@ Plug 'pprovost/vim-ps1' " Much better theme " Plug NLKNguyen/papercolor-theme +" +" +Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' } call plug#end() @@ -65,8 +77,16 @@ set softtabstop=4 " makes the spaces feel like real tabs set tabstop=2 set shiftwidth=2 +" Working with Go +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// +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.