]> apps.delaporte.us Git - dotfiles.git/blob - vimrc
4926c18dd3cc161b9381d1e95f5f77ce4f69c26b
[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 " EdTheDev's Minion file organizer.
49 " Plugin 'edthedev/minion'
50 " let g:minion_map_keys = 0
51
52
53 " Syntax helpers for ReStructuredText
54 " Plugin 'edthedev/rst-syntax.vim'
55
56 " EdTheDev's Vim configuration for Python PEP8
57 " Plugin 'edthedev/vim-pep8'
58 " let g:minion_todo_map_keys = 1
59
60
61 " let g:vimroom_ctermbackground = "black"
62 "
63
64 " Trac plugin for Vim
65 " Plugin 'mjbrownie/Trac.vim'
66 " :help trac
67 " let g:tracServerList = {}
68 " let g:tracServerList['sdg'] =
69 "" \'http://username:password@trac.nukulele.org/login/xmlrpc'
70
71 "Plugin 'fmoralesc/vim-pad'
72 " let g:pad_dir='~/Copy/notes'
73
74 " Low contrast color scheme for Gvim - much easier on the eyes.
75 " Plugin 'junegunn/seoul256.vim'
76
77 " Display tag (function/method) outline
78 " Plugin 'majutsushi/tagbar'
79 " nmap <leader>t :TagbarToggle<Cr>
80
81 " EdTheDev's Vim configuration for TODO list items.
82 " Plugin 'edthedev/vim-todo'
83 " let g:vim_todo_keys = 1
84
85 " Automatic closing of parenthesis
86 " Plugin 'Raimondi/delimitMate'
87 " - Caused syntax color problems for RST?
88
89 " Browsing files made easier.
90 " Plugin 'scrooloose/nerdtree'
91 " nmap <leader>r :NERDTreeToggle<CR>
92
93 " Async dispatch by Tim Pope
94 " Plugin 'tpope/vim-dispatch'
95
96 " Markdown highlighting
97 Plugin 'tpope/vim-markdown'
98 " let g:markdown_github_languages = ['sh', 'python']
99
100 "Plugin 'jceb/vim-orgmode'
101 "let g:org_todo_keywords=['TODO', 'DONE', 'WAITING', 'CANCELED']
102 "let g:org_agenda_files=['~/index.org']
103
104 " More obvious default behaviors
105 " Plugin 'edthedev/wordlike.vim'
106
107 " Plugin 'xolox/vim-notes'
108 " Add @Tag search support
109 "Bundle 'fmoralesc/vim-pad'
110 " let g:pad_dir='~/Copy/notes'
111
112 " Distraction free writing.
113 Plugin 'junegunn/goyo.vim'
114 nnoremap <leader>w :Goyo<Cr>
115
116 " Plugin 'vim-scripts/pylint-mode'
117 " let g:PyLintCWindow = 1
118 " let g:PyLintSigns = 1
119 " let g:PyLintOnWrite = 1
120 " 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'
121
122 " Help building Arduino source files.
123 " Plugin 'edthedev/arduino.vim'
124 " let g:arduino_compile_command = 'ino build --board-model=atmega328'
125 " let g:arduino_upload_command = 'ino upload --board-model=atmega328'
126
127 " Plugin 'tomswartz07/vim-todo'
128 "
129 " Run commands from the current line and get their output.
130 " Plugin 'edthedev/cmd.vim'
131
132 " Plugin 'itchyny/thumbnail.vim'
133 " :Thumbnail
134
135 " Plugin 'farseer90718/vim-taskwarrior'
136 " let g:task_rc_override = 'defaultwidth=999'
137 " Plugin 'farseer90718/vim-taskwarrior'
138 " let g:task_rc_override = 'defaultwidth=0'
139 " let g:task_report_name = 'list'
140 " Read up on it here: https://github.com/farseer90718/vim-taskwarrior
141 "
142
143 " For REST APIs Press QQ in normal mode to open.
144 " Plugin 'nicwest/QQ.vim'
145
146 " Plugin 'mihaifm/bufstop'
147 " nn <leader>b :Bufstop<CR> " get a visual on the buffers
148 " map <leader>a :BufstopModeFast<CR> " a command for quick switching
149
150 " Sensible defaults for Markdown
151 " Plugin 'plasticboy/vim-markdown'
152 " set nofoldenable "Do not fold everything
153
154 " Better status line.
155 Plugin 'bling/vim-airline'
156
157 " Plugin 'vimwiki/vimwiki'
158 " let g:vimwiki_list = [{'path': '~/Box Sync/wiki', 'path_html': '~/cites_wiki_html/'},{'path': '~/Dropbox/wiki', 'path_html': '~/vim_wiki_html/'}]
159
160 Plugin 'Windows-PowerShell-Syntax-Plugin'
161
162 " HTML
163 " Bundle 'othree/html5.vim'
164 "Bundle 'evidens/vim-twig'
165 "Bundle 'tokutake/twig-indent'
166 "Bundle 'groenewege/vim-less'
167 "Bundle 'hail2u/vim-css3-syntax'
168
169 " Quick complete of stuff...
170 " Plugin 'SirVer/ultisnips'
171
172 " let g:UltiSnipsExpandTrigger="<tab>"
173 " let g:UltiSnipsJumpForwardTrigger="<c-b>"
174 " let g:UltiSnipsJumpBackwardTrigger="<c-z>"
175
176 " Snippets for ultisnips
177 " Plugin 'edthedev/vim-snippets'
178
179 " Default to use strapdown and markdown for blog posts.
180 " UltiSnipsAddFiletypes markdown.strapdown
181
182
183 call vundle#end()
184 filetype plugin indent on " required for Vundle Bundle
185
186 " Page down with space key
187 " nn <space> <c-d>
188 " Shift space is undetectable in many terminals...
189 " nn <S-space> <c-u>
190
191
192 " If not something else, then assume Markdown
193 set filetype=markdown
194 set syntax=markdown
195
196 " Don't show tabs for HTML files. Do show trailing spaces."
197 au FileType html set nolist
198 au FileType javascript set nolist
199
200 set softtabstop=4 " makes the spaces feel like real tabs
201
202 " Sensible default for everything else.
203 set tabstop=2
204 set shiftwidth=2
205
206
207 colorscheme slate