]> us-delaporte.pagekite.me Git - dotfiles.git/blob - vimrc
Add MIT License.
[dotfiles.git] / vimrc
1 " -------------------------------------------------------
2 "
3 " EdTheDev's .vimrc
4 "
5 " -------------------------------------------------------
6
7 " Let the leader key be ,
8 let mapleader=","
9
10 " Easier Ex commands
11 nnoremap ; :
12
13 " iPad and Android keyboards have no ESC Key
14 inoremap ii <esc>
15
16 set smarttab
17
18 set nocompatible " be iMproved, required
19
20 set omnifunc=syntaxcomplete#Complete
21
22 filetype off " required
23
24 " =================
25 " Here be Plugins!
26 " =================
27 call plug#begin('~/.vim/plugged')
28
29 " Markdown highlighting
30 " Plug 'tpope/vim-markdown'
31 " Plug 'plasticboy/vim-markdown'
32 " let g:markdown_github_languages = ['sh', 'python']
33
34 " Distraction free writing.
35 Plug 'junegunn/goyo.vim'
36
37 " Better status line.
38 Plug 'bling/vim-airline'
39
40 " Plugin 'Windows-PowerShell-Syntax-Plugin'
41
42 " PowerShell Highlighting and detection
43 Plug 'pprovost/vim-ps1'
44
45 " Much better theme
46 " Plug NLKNguyen/papercolor-theme
47 "
48 "
49 Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
50
51 call plug#end()
52
53 filetype plugin indent on " required for Vundle Bundle
54
55 nnoremap <leader>w :Goyo<Cr>
56
57 " If not something else, then assume Markdown
58 set filetype=markdown
59 set syntax=markdown
60
61 " Don't show tabs for HTML files. Do show trailing spaces."
62 au FileType html set nolist
63 au FileType javascript set nolist
64
65 set softtabstop=4 " makes the spaces feel like real tabs
66
67 " Sensible default for everything else.
68 set tabstop=2
69 set shiftwidth=2
70
71 " Working with Go
72 au BufNewFile,BufRead *.go set noet ts=2 sw=2 sts=2
73
74 " Working with Markdown
75
76 au BufNewFile,BufFilePre,BufRead *.md set filetype=markdown
77 colorscheme slate
78 " colorscheme papercolor
79 set number
80
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.