]> apps.delaporte.us Git - dotfiles.git/blob - vimrc
Add screenrc
[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 " Pelican.vim Revived!
78 Plugin 'edthedev/pelican.vim'
79 let g:pelican_blog_source = '~/Copy/blog'
80 let g:pelican_blog_html = '~/blog_html'
81 let g:pelican_git_master = 'git@bitbucket.org:edthedev/blog.git'
82 let g:pelican_publish_server = 'uiucedward@hathor.dreamhost.com:~/edward.delaporte.us'
83
84 " Low contrast color scheme for Gvim - much easier on the eyes.
85 Plugin 'junegunn/seoul256.vim'
86
87 " Display tag (function/method) outline
88 Plugin 'majutsushi/tagbar'
89 nmap <leader>t :TagbarToggle<Cr>
90
91 " EdTheDev's Vim configuration for TODO list items.
92 Plugin 'edthedev/vim-todo'
93 let g:vim_todo_keys = 1
94
95 " Automatic closing of parenthesis
96 " Plugin 'Raimondi/delimitMate'
97 " - Caused syntax color problems for RST?
98
99 " Browsing files made easier.
100 Plugin 'scrooloose/nerdtree'
101 nmap <leader>r :NERDTreeToggle<CR>
102
103 " Async dispatch by Tim Pope
104 Plugin 'tpope/vim-dispatch'
105
106 " Bundle 'vim-scripts/confluencewiki.vim'
107 " - Caused syntax color problems for RST?
108 "
109 "Plugin 'jceb/vim-orgmode'
110 "let g:org_todo_keywords=['TODO', 'DONE', 'WAITING', 'CANCELED']
111 "let g:org_agenda_files=['~/Google Drive/index.org']
112
113 " More obvious default behaviors
114 Plugin 'edthedev/wordlike.vim'
115
116 " Plugin 'xolox/vim-notes'
117 " Add @Tag search support
118 "Bundle 'fmoralesc/vim-pad'
119 " let g:pad_dir='~/Copy/notes'
120
121 " Distraction free writing.
122 Plugin 'junegunn/goyo.vim'
123 nnoremap <leader>w :Goyo<Cr>
124 " Limelight doesn't work with iterm
125 " Plugin 'junegunn/limelight.vim'
126 " nnoremap <leader>w :Goyo<Cr>:Limelight<Cr>
127
128 Plugin 'vim-scripts/pylint-mode'
129 let g:PyLintCWindow = 1
130 let g:PyLintSigns = 1
131 let g:PyLintOnWrite = 1
132 " let g:PyLintDissabledMessages = 'C0103,C0111,C0301,W0141,W0142,W0212,W0221,W0223,W0232,W0401,W0613,W0631,E1101,E1120,R0201,R0901,R0903,R0904,R0913'
133 " let g:PyLintDissabledMessages = 'C0103,C0111,C0301,W0141,W0142,W0212,W0221,W0223,W0232,W0401,W0613,W0631,E1101,E1120,R0201,R0901,R0903,R0904,R0913,E1002,E1103'
134 " let g:PyLintDissabledMessages = 'C0103,C0111,C0301,W0141,W0142,W0212,W0221,W0223,W0232,W0401,W0613,W0631,E1002,E1101,E1103,E1120,R0201,R0901,R0903,R0904,R0913'
135 let g:PyLintDissabledMessages = 'C0103,C0111,C0301,C0322,C0323,C0324,W0141,W0142,W0212,W0221,W0223,W0232,W0401,W0613,W0621,W0631,E0611,E1002,E1101,E1103,E1120,F0401,R0201,R0901,R0903,R0904,R0913'
136
137 " Help building Arduino source files.
138 Plugin 'edthedev/arduino.vim'
139 " Plugin 'edthedev/vim-arduino-ino'
140 let g:arduino_compile_command = 'ino build --board-model=atmega328'
141 " let g:arduino_compile_command = 'Dispatch ino build --board-model=atmega328'
142 let g:arduino_upload_command = 'ino upload --board-model=atmega328'
143
144 " Plugin 'tomswartz07/vim-todo'
145 "
146 " Run commands from the current line and get their output.
147 Plugin 'edthedev/cmd.vim'
148
149 Plugin 'itchyny/thumbnail.vim'
150 " :Thumbnail
151 "
152 " Plugin 'farseer90718/vim-taskwarrior'
153 " let g:task_rc_override = 'defaultwidth=999'
154 " Plugin 'farseer90718/vim-taskwarrior'
155 " let g:task_rc_override = 'defaultwidth=0'
156 " let g:task_report_name = 'list'
157 " Read up on it here: https://github.com/farseer90718/vim-taskwarrior
158 "
159
160 " For REST APIs Press QQ in normal mode to open.
161 Plugin 'nicwest/QQ.vim'
162
163 " Plugin 'scrooloose/syntastic'
164
165 Plugin 'mihaifm/bufstop'
166 nn <leader>b :Bufstop<CR> " get a visual on the buffers
167 map <leader>a :BufstopModeFast<CR> " a command for quick switching
168
169 " Sensible defaults for Markdown
170 " Plugin 'plasticboy/vim-markdown'
171 " set nofoldenable "Do not fold everything
172
173 " Ctrl P on steroids...
174 " Plugin 'Shougo/unite.vim'
175
176 " Better status line.
177 Plugin 'bling/vim-airline'
178
179 " Plugin 'vimwiki/vimwiki'
180 " let g:vimwiki_list = [{'path': '~/Box Sync/wiki', 'path_html': '~/cites_wiki_html/'},{'path': '~/Dropbox/wiki', 'path_html': '~/vim_wiki_html/'}]
181
182 " Emacs style kill-paste ring
183 " Plugin 'vim-scripts/YankRing.vim'
184 " :h yankring.txt
185 " :h yankring-tutorial
186
187 " Javascript
188 " Plugin 'maksimr/vim-jsbeautify'
189 "Plugin 'einars/js-beautify'
190 "
191 " Plugin 'Delapouite/vim-javascript-syntax'
192 "Plugin 'pangloss/vim-javascript'
193
194 " HTML
195 " Bundle 'othree/html5.vim'
196 "Bundle 'evidens/vim-twig'
197 "Bundle 'tokutake/twig-indent'
198 "Bundle 'groenewege/vim-less'
199 "Bundle 'hail2u/vim-css3-syntax'
200
201 " AsciiDoc
202 " Very broken:
203 " Bundle 'dahu/vim-asciidoc'
204
205 call vundle#end()
206 filetype plugin indent on " required for Vundle Bundle
207
208 " Page down with space key
209 " nn <space> <c-d>
210 " Shift space is undetectable in many terminals...
211 " nn <S-space> <c-u>
212
213
214 " If not something else, then asciidoc
215 " set filetype=asciidoc
216
217 " Don't show tabs for HTML files. Do show trailing spaces."
218 au FileType html set nolist
219 au FileType javascript set nolist
220
221 " Two spaces as tabs in .feature files.
222 au BufRead,BufNewFile *.feature set filetype=yaml
223 au FileType yaml set tabstop=2
224 au FileType yaml set shiftwidth=2
225 au FileType yaml set expandtab
226
227 " Two spaces for Markdown files.
228 au BufRead,BufNewFile *.md set filetype=markdown
229 au FileType markdown set tabstop=2
230 au FileType markdown set shiftwidth=2
231 " au FileType yaml set expandtab
232 "
233
234
235 set softtabstop=4 " makes the spaces feel like real tabs
236 " Sensible default for everything else.
237 set tabstop=2
238 set shiftwidth=2
239