1 " -------------------------------------------------------
5 " -------------------------------------------------------
7 " Let the leader key be ,
13 " iPad and Android keyboards have no ESC Key
18 set nocompatible " be iMproved, required
20 set omnifunc=syntaxcomplete#Complete
22 filetype off " required
27 call plug#begin('~/.vim/plugged')
29 " Markdown highlighting
30 " Plug 'tpope/vim-markdown'
31 " Plug 'plasticboy/vim-markdown'
32 " let g:markdown_github_languages = ['sh', 'python']
34 " Distraction free writing.
35 Plug 'junegunn/goyo.vim'
38 Plug 'bling/vim-airline'
40 " Plugin 'Windows-PowerShell-Syntax-Plugin'
42 " PowerShell Highlighting and detection
43 Plug 'pprovost/vim-ps1'
46 " Plug NLKNguyen/papercolor-theme
49 Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
53 filetype plugin indent on " required for Vundle Bundle
55 nnoremap <leader>w :Goyo<Cr>
57 " If not something else, then assume Markdown
61 " Don't show tabs for HTML files. Do show trailing spaces."
62 au FileType html set nolist
63 au FileType javascript set nolist
65 set softtabstop=4 " makes the spaces feel like real tabs
67 " Sensible default for everything else.
72 au BufNewFile,BufRead *.go set noet ts=2 sw=2 sts=2
74 " Working with Markdown
76 au BufNewFile,BufFilePre,BufRead *.md set filetype=markdown
78 " colorscheme papercolor
81 set backupdir=c:\temp,.backup/,~/.backup/,/tmp//
82 set directory=c:\temp,.swp/,~/.swp/,/tmp//
83 set undodir=c:\temp,.undo/,~/.undo/,/tmp//
84 set backspace=indent,eol,start " Do not be pedantic about backspace.