]> apps.delaporte.us Git - dotfiles.git/blob - vimrc
More obnoxious pylint messages suppressed.
[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 Plugin 'edthedev/rst-syntax.vim'
56
57 " EdTheDev's Vim configuration for Python PEP8
58 Plugin 'edthedev/vim-pep8'
59 let g:minion_todo_map_keys = 1
60
61
62 " let g:vimroom_ctermbackground = "black"
63 "
64
65 " Trac plugin for Vim
66 " Plugin 'mjbrownie/Trac.vim'
67 " :help trac
68 " let g:tracServerList = {}
69 " let g:tracServerList['sdg'] =
70 "" \'http://username:password@trac.nukulele.org/login/xmlrpc'
71
72 "Plugin 'fmoralesc/vim-pad'
73 " let g:pad_dir='~/Copy/notes'
74
75 " Pelican.vim Revived!
76 Plugin 'edthedev/pelican.vim'
77 let g:pelican_blog_source = '~/Copy/blog'
78 let g:pelican_blog_html = '~/blog_html'
79 let g:pelican_git_master = 'git@bitbucket.org:edthedev/blog.git'
80 let g:pelican_publish_server = 'uiucedward@hathor.dreamhost.com:~/edward.delaporte.us'
81
82 " Low contrast color scheme for Gvim - much easier on the eyes.
83 Plugin 'junegunn/seoul256.vim'
84
85 " Display tag (function/method) outline
86 Plugin 'majutsushi/tagbar'
87 nmap <leader>t :TagbarToggle<Cr>
88
89 " EdTheDev's Vim configuration for TODO list items.
90 Plugin 'edthedev/vim-todo'
91 let g:vim_todo_keys = 1
92
93 " Automatic closing of parenthesis
94 " Plugin 'Raimondi/delimitMate'
95 " - Caused syntax color problems for RST?
96
97 " Browsing files made easier.
98 Plugin 'scrooloose/nerdtree'
99 nmap <leader>r :NERDTreeToggle<CR>
100
101 " Async dispatch by Tim Pope
102 Plugin 'tpope/vim-dispatch'
103
104 " Bundle 'vim-scripts/confluencewiki.vim'
105 " - Caused syntax color problems for RST?
106 "
107 "Plugin 'jceb/vim-orgmode'
108 "let g:org_todo_keywords=['TODO', 'DONE', 'WAITING', 'CANCELED']
109 "let g:org_agenda_files=['~/Google Drive/index.org']
110
111 Plugin 'edthedev/wordlike.vim'
112
113 " Plugin 'xolox/vim-notes'
114 " Add @Tag search support
115 "Bundle 'fmoralesc/vim-pad'
116 " let g:pad_dir='~/Copy/notes'
117
118 " Distraction free writing.
119 Plugin 'junegunn/goyo.vim'
120 nnoremap <leader>w :Goyo<Cr>
121 " Limelight doesn't work with iterm
122 " Plugin 'junegunn/limelight.vim'
123 " nnoremap <leader>w :Goyo<Cr>:Limelight<Cr>
124
125 Plugin 'vim-scripts/pylint-mode'
126 let g:PyLintCWindow = 1
127 let g:PyLintSigns = 1
128 let g:PyLintOnWrite = 1
129 " let g:PyLintDissabledMessages = 'C0103,C0111,C0301,W0141,W0142,W0212,W0221,W0223,W0232,W0401,W0613,W0631,E1101,E1120,R0201,R0901,R0903,R0904,R0913'
130 " let g:PyLintDissabledMessages = 'C0103,C0111,C0301,W0141,W0142,W0212,W0221,W0223,W0232,W0401,W0613,W0631,E1101,E1120,R0201,R0901,R0903,R0904,R0913,E1002,E1103'
131 " let g:PyLintDissabledMessages = 'C0103,C0111,C0301,W0141,W0142,W0212,W0221,W0223,W0232,W0401,W0613,W0631,E1002,E1101,E1103,E1120,R0201,R0901,R0903,R0904,R0913'
132 let g:PyLintDissabledMessages = 'C0103,C0111,C0301,W0141,W0142,W0212,W0221,W0223,W0232,W0401,W0613,W0621,W0631,E0611,E1002,E1101,E1103,E1120,F0401,R0201,R0901,R0903,R0904,R0913'
133
134 Plugin 'edthedev/arduino.vim'
135 " Plugin 'edthedev/vim-arduino-ino'
136 let g:arduino_compile_command = 'ino build --board-model=atmega328'
137 " let g:arduino_compile_command = 'Dispatch ino build --board-model=atmega328'
138 let g:arduino_upload_command = 'ino upload --board-model=atmega328'
139
140 " Plugin 'tomswartz07/vim-todo'
141 "
142 Plugin 'edthedev/cmd.vim'
143
144 Plugin 'itchyny/thumbnail.vim'
145 " :Thumbnail
146 "
147 Plugin 'farseer90718/vim-taskwarrior'
148 let g:task_rc_override = 'defaultwidth=999'
149 " Read up on it here: https://github.com/farseer90718/vim-taskwarrior
150 "
151
152 " For REST APIs
153 Plugin 'nicwest/QQ.vim'
154
155 Plugin 'scrooloose/syntastic'
156
157 Plugin 'mihaifm/bufstop'
158 nn <leader>b :Bufstop<CR> " get a visual on the buffers
159 map <leader>a :BufstopModeFast<CR> " a command for quick switching
160
161 " Sensible defaults for Markdown
162 Plugin 'plasticboy/vim-markdown'
163 set nofoldenable "Do not fold everything
164
165 call vundle#end()
166 filetype plugin indent on " required for Vundle Bundle
167
168 " Page down with space key
169 nn <space> <c-d>
170 " Shift space is undetectable in many terminals...
171 nn <S-space> <c-u>
172
173 " Don't show tabs for HTML files. Do show trailing spaces."
174 au FileType html set nolist
175 au FileType javascript 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