Mercurial > dotfiles
comparison vim/vimrc @ 178:94bf0bd0a788
Updated sub-repos.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Fri, 07 Mar 2014 19:55:07 -0800 |
parents | 925df140ae95 |
children | 8b37877d309f |
comparison
equal
deleted
inserted
replaced
168:5c75090e3649 | 178:94bf0bd0a788 |
---|---|
211 | 211 |
212 " }}} | 212 " }}} |
213 | 213 |
214 " Plugin Settings {{{ | 214 " Plugin Settings {{{ |
215 | 215 |
216 " Ctrl-P {{{ | |
217 | |
216 " We'll set our own mappings. | 218 " We'll set our own mappings. |
217 let g:ctrlp_map = '' | 219 let g:ctrlp_map = '' |
218 | 220 |
219 " Ctrl-P should manage the working directory. | 221 " Ctrl-P should manage the working directory. |
220 let g:ctrlp_working_path_mode = 2 | 222 let g:ctrlp_working_path_mode = 2 |
225 \ } | 227 \ } |
226 | 228 |
227 " Make Ctrl-P cache stuff in our temp directory. | 229 " Make Ctrl-P cache stuff in our temp directory. |
228 let g:ctrlp_cache_dir = s:vim_home.'/cache' | 230 let g:ctrlp_cache_dir = s:vim_home.'/cache' |
229 | 231 |
232 " }}} | |
233 | |
234 " Syntastic {{{ | |
235 | |
230 " Use `pyflakes` with `syntastic`. | 236 " Use `pyflakes` with `syntastic`. |
231 let g:syntastic_python_checkers = ['pyflakes'] | 237 let g:syntastic_python_checkers = ['pyflakes'] |
238 let g:syntastic_mode_map = { | |
239 \'mode': 'active', | |
240 \'passive_filetypes': []} | |
241 | |
242 " }}} | |
243 | |
244 " Lawrencium {{{ | |
232 | 245 |
233 " Custom Mercurial commands highlighting in Lawrencium. | 246 " Custom Mercurial commands highlighting in Lawrencium. |
234 let g:lawrencium_hg_commands_file_types = { | 247 let g:lawrencium_hg_commands_file_types = { |
235 \'clog': 'hggraphlog' | 248 \'clog': 'hggraphlog' |
236 \} | 249 \} |
237 | 250 |
238 " Make the annotate window better in Lawrencium. | 251 " Make the annotate window better in Lawrencium. |
239 let g:lawrencium_annotate_width_offset = 0 | 252 let g:lawrencium_annotate_width_offset = 0 |
253 | |
254 " }}} | |
255 | |
256 " Gundo {{{ | |
257 | |
258 let g:gundo_map_move_older = '<Down>' | |
259 let g:gundo_map_move_newer = '<Up>' | |
260 | |
261 " }}} | |
262 | |
263 " YankRing {{{ | |
264 | |
265 let g:yankring_replace_n_pkey = '<C-K>' | |
266 let g:yankring_replace_p_pkey = '<C-J>' | |
267 | |
268 " }}} | |
269 | |
270 " Python-Mode {{{ | |
271 | |
272 let g:pymode = 0 | |
273 | |
274 " }}} | |
240 | 275 |
241 " }}} | 276 " }}} |
242 | 277 |
243 " File-Specific Settings {{{ | 278 " File-Specific Settings {{{ |
244 | 279 |
277 noremap <up> g<up> | 312 noremap <up> g<up> |
278 noremap <down> g<down> | 313 noremap <down> g<down> |
279 noremap <home> g<home> | 314 noremap <home> g<home> |
280 noremap <end> g<end> | 315 noremap <end> g<end> |
281 | 316 |
282 " Buffer navigation | 317 " Tab navigation |
283 noremap <C-Tab> :bnext<cr> | 318 noremap <C-Tab> :tabnext<cr> |
284 noremap <C-S-Tab> :bprevious<cr> | 319 noremap <C-S-Tab> :tabprevious<cr> |
285 | 320 |
286 " Window navigation | 321 " Window navigation |
287 nnoremap <C-up> :wincmd k<cr> | 322 nnoremap <C-up> :wincmd k<cr> |
288 nnoremap <C-down> :wincmd j<cr> | 323 nnoremap <C-down> :wincmd j<cr> |
289 nnoremap <C-left> :wincmd h<cr> | 324 nnoremap <C-left> :wincmd h<cr> |
292 " Open NERDtree. | 327 " Open NERDtree. |
293 nnoremap <F2> :NERDTreeToggle %:p:h<cr> | 328 nnoremap <F2> :NERDTreeToggle %:p:h<cr> |
294 | 329 |
295 " Switch buffers. | 330 " Switch buffers. |
296 nnoremap <F3> :execute ("buffer " . bufname("#"))<cr> | 331 nnoremap <F3> :execute ("buffer " . bufname("#"))<cr> |
332 | |
333 " Gundo. | |
334 nnoremap <F5> :GundoToggle<cr> | |
297 | 335 |
298 " Tagbar. | 336 " Tagbar. |
299 nnoremap <F8> :TagbarToggle<cr> | 337 nnoremap <F8> :TagbarToggle<cr> |
300 | 338 |
301 " Common typos. | 339 " Common typos. |