]> apps.delaporte.us Git - dotfiles.git/blobdiff - vimrc
Updated dashboard for changes to AgilePowerShellGitHub.
[dotfiles.git] / vimrc
diff --git a/vimrc b/vimrc
index c5abfc2b1ca70164e5ce3c62388551cda471b5a2..601a6766e6b102314375b193d70abf5353cfee8e 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -21,13 +21,23 @@ 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!
 " =================
 call plug#begin('~/.vim/plugged')
 
 " Markdown highlighting
-Plug 'tpope/vim-markdown'
+" Plug 'tpope/vim-markdown'
+" Plug 'plasticboy/vim-markdown'
 " let g:markdown_github_languages = ['sh', 'python']
 
 " Distraction free writing.
@@ -41,6 +51,12 @@ Plug 'bling/vim-airline'
 " PowerShell Highlighting and detection
 Plug 'pprovost/vim-ps1'
 
+" Much better theme
+" Plug NLKNguyen/papercolor-theme
+"
+"
+Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
+
 call plug#end()
 
 filetype plugin indent on     " required for Vundle Bundle
@@ -61,4 +77,16 @@ set softtabstop=4 " makes the spaces feel like real tabs
 set tabstop=2
 set shiftwidth=2
 
-colorscheme slate
+" 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 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.