]> us-delaporte.pagekite.me Git - dotfiles.git/blob - vimrc
Trivial bootstrap script.
[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,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=999'
150 " Read up on it here: https://github.com/farseer90718/vim-taskwarrior
151 "
152
153 " For REST APIs
154 Plugin 'nicwest/QQ.vim'
155
156 Plugin 'scrooloose/syntastic'
157
158 Plugin 'mihaifm/bufstop'
159 nn <leader>b :Bufstop<CR> " get a visual on the buffers
160 map <leader>a :BufstopModeFast<CR> " a command for quick switching
161
162 " Sensible defaults for Markdown
163 Plugin 'plasticboy/vim-markdown'
164 set nofoldenable "Do not fold everything
165
166 call vundle#end()
167 filetype plugin indent on " required for Vundle Bundle
168
169 " Page down with space key
170 nn <space> <c-d>
171 " Shift space is undetectable in many terminals...
172 nn <S-space> <c-u>
173
174 " Don't show tabs for HTML files. Do show trailing spaces."
175 au FileType html set nolist
176
177 " Two spaces as tabs in .feature files.
178 au BufRead,BufNewFile *.feature set filetype=yaml
179 au FileType yaml set tabstop=2
180 au FileType yaml set shiftwidth=2
181 au FileType yaml set expandtab
182
183 " Two spaces for Markdown files.
184 au BufRead,BufNewFile *.md set filetype=markdown
185 au FileType markdown set tabstop=2
186 au FileType markdown set shiftwidth=2
187 " au FileType yaml set expandtab
188
189 set softtabstop=4 " makes the spaces feel like real tabs
190 " Sensible default for everything else.
191 set tabstop=2
192 set shiftwidth=2