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