]> apps.delaporte.us Git - dotfiles.git/blob - vimrc
Install PoshGit for Powershell
[dotfiles.git] / vimrc
1 " -------------------------------------------------------
2 "
3 " EdTheDev's Minimal .vimrc
4 "
5 " Everything belongs in a Vundle plugin.
6 " -------------------------------------------------------
7
8 " When setting up on a new machine, remember to:
9 " cd ~
10 " git clone https://github.com/gmarik/Vundle.vim.git
11 " ~/.vim/bundle/Vundle.vim
12 " vim +BundleInstall +qall
13 "
14 " Automatically setup Vundle on first run
15 " if !isdirectory(expand("~/.vim/bundle/Vundle.vim"))
16 " call system("git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle")
17 " endif
18
19 " Let the leader key be ,
20 let mapleader=","
21
22 " Easier Ex commands
23 nnoremap ; :
24
25 " iPad and Android keyboards have no ESC Key
26 inoremap ii <esc>
27
28
29 set smarttab
30
31 set nocompatible " be iMproved, required
32
33 set omnifunc=syntaxcomplete#Complete
34
35 filetype off " required
36
37 set rtp+=~/.vim/bundle/Vundle.vim
38 call vundle#begin()
39
40 " =================
41 " Here be Plugins!
42 " =================
43
44 " let Vundle manage Vundle
45 " required!
46 Plugin 'gmarik/vundle'
47
48 " Helper scripts for editing ReStructuredText
49 Plugin 'edthedev/text-helper.vim'
50
51 " EdTheDev's Minion file organizer.
52 " Plugin 'edthedev/minion'
53 " let g:minion_map_keys = 0
54
55
56 " Syntax helpers for ReStructuredText
57 " Plugin 'edthedev/rst-syntax.vim'
58
59 " EdTheDev's Vim configuration for Python PEP8
60 " Plugin 'edthedev/vim-pep8'
61 " let g:minion_todo_map_keys = 1
62
63
64 " let g:vimroom_ctermbackground = "black"
65 "
66
67 " Trac plugin for Vim
68 " Plugin 'mjbrownie/Trac.vim'
69 " :help trac
70 " let g:tracServerList = {}
71 " let g:tracServerList['sdg'] =
72 "" \'http://username:password@trac.nukulele.org/login/xmlrpc'
73
74 "Plugin 'fmoralesc/vim-pad'
75 " let g:pad_dir='~/Copy/notes'
76
77 " Low contrast color scheme for Gvim - much easier on the eyes.
78 " Plugin 'junegunn/seoul256.vim'
79
80 " Display tag (function/method) outline
81 " Plugin 'majutsushi/tagbar'
82 " nmap <leader>t :TagbarToggle<Cr>
83
84 " EdTheDev's Vim configuration for TODO list items.
85 " Plugin 'edthedev/vim-todo'
86 " let g:vim_todo_keys = 1
87
88 " Automatic closing of parenthesis
89 " Plugin 'Raimondi/delimitMate'
90 " - Caused syntax color problems for RST?
91
92 " Browsing files made easier.
93 " Plugin 'scrooloose/nerdtree'
94 " nmap <leader>r :NERDTreeToggle<CR>
95
96 " Async dispatch by Tim Pope
97 " Plugin 'tpope/vim-dispatch'
98
99 " Markdown highlighting
100 Plugin 'tpope/vim-markdown'
101 let g:markdown_github_languages = ['sh', 'python']
102
103 "Plugin 'jceb/vim-orgmode'
104 "let g:org_todo_keywords=['TODO', 'DONE', 'WAITING', 'CANCELED']
105 "let g:org_agenda_files=['~/index.org']
106
107 " More obvious default behaviors
108 " Plugin 'edthedev/wordlike.vim'
109
110 " Plugin 'xolox/vim-notes'
111 " Add @Tag search support
112 "Bundle 'fmoralesc/vim-pad'
113 " let g:pad_dir='~/Copy/notes'
114
115 " Distraction free writing.
116 Plugin 'junegunn/goyo.vim'
117 nnoremap <leader>w :Goyo<Cr>
118
119 " Plugin 'vim-scripts/pylint-mode'
120 " let g:PyLintCWindow = 1
121 " let g:PyLintSigns = 1
122 " let g:PyLintOnWrite = 1
123 " let g:PyLintDissabledMessages = 'C0103,C0111,C0301,C0322,C0323,C0324,W0141,W0142,W0212,W0221,W0223,W0232,W0401,W0613,W0621,W0631,E0102,E0611,E1002,E1101,E1103,E1120,F0401,R0201,R0901,R0903,R0904,R0913'
124
125 " Help building Arduino source files.
126 " Plugin 'edthedev/arduino.vim'
127 " let g:arduino_compile_command = 'ino build --board-model=atmega328'
128 " let g:arduino_upload_command = 'ino upload --board-model=atmega328'
129
130 " Plugin 'tomswartz07/vim-todo'
131 "
132 " Run commands from the current line and get their output.
133 " Plugin 'edthedev/cmd.vim'
134
135 " Plugin 'itchyny/thumbnail.vim'
136 " :Thumbnail
137
138 " Plugin 'farseer90718/vim-taskwarrior'
139 " let g:task_rc_override = 'defaultwidth=999'
140 " Plugin 'farseer90718/vim-taskwarrior'
141 " let g:task_rc_override = 'defaultwidth=0'
142 " let g:task_report_name = 'list'
143 " Read up on it here: https://github.com/farseer90718/vim-taskwarrior
144 "
145
146 " For REST APIs Press QQ in normal mode to open.
147 " Plugin 'nicwest/QQ.vim'
148
149 " Plugin 'mihaifm/bufstop'
150 " nn <leader>b :Bufstop<CR> " get a visual on the buffers
151 " map <leader>a :BufstopModeFast<CR> " a command for quick switching
152
153 " Sensible defaults for Markdown
154 " Plugin 'plasticboy/vim-markdown'
155 " set nofoldenable "Do not fold everything
156
157 " Better status line.
158 Plugin 'bling/vim-airline'
159
160 " Plugin 'vimwiki/vimwiki'
161 " let g:vimwiki_list = [{'path': '~/Box Sync/wiki', 'path_html': '~/cites_wiki_html/'},{'path': '~/Dropbox/wiki', 'path_html': '~/vim_wiki_html/'}]
162
163 Plugin 'Windows-PowerShell-Syntax-Plugin'
164
165 " HTML
166 " Bundle 'othree/html5.vim'
167 "Bundle 'evidens/vim-twig'
168 "Bundle 'tokutake/twig-indent'
169 "Bundle 'groenewege/vim-less'
170 "Bundle 'hail2u/vim-css3-syntax'
171
172 " Quick complete of stuff...
173 " Plugin 'SirVer/ultisnips'
174
175 " let g:UltiSnipsExpandTrigger="<tab>"
176 " let g:UltiSnipsJumpForwardTrigger="<c-b>"
177 " let g:UltiSnipsJumpBackwardTrigger="<c-z>"
178
179 " Snippets for ultisnips
180 " Plugin 'edthedev/vim-snippets'
181
182 " Default to use strapdown and markdown for blog posts.
183 " UltiSnipsAddFiletypes markdown.strapdown
184
185
186 call vundle#end()
187 filetype plugin indent on " required for Vundle Bundle
188
189 " Page down with space key
190 " nn <space> <c-d>
191 " Shift space is undetectable in many terminals...
192 " nn <S-space> <c-u>
193
194
195 " If not something else, then assume Markdown
196 set filetype=markdown
197 set syntax=markdown
198
199 " Don't show tabs for HTML files. Do show trailing spaces."
200 au FileType html set nolist
201 au FileType javascript set nolist
202
203 set softtabstop=4 " makes the spaces feel like real tabs
204
205 " Sensible default for everything else.
206 set tabstop=2
207 set shiftwidth=2
208
209
210 colorscheme slate