Mercurial > dotfiles
comparison vim/vimrc @ 409:63463782d1cd
Merge changes.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 10 Jan 2018 00:05:36 -0800 |
parents | 1da269c50dca c32b9b172314 |
children | 72365ec18f54 |
comparison
equal
deleted
inserted
replaced
408:1da269c50dca | 409:63463782d1cd |
---|---|
297 | 297 |
298 " flake8 includes pyflakes, pep8, and mccabe | 298 " flake8 includes pyflakes, pep8, and mccabe |
299 " I could maybe replace pyflakes with frosted? | 299 " I could maybe replace pyflakes with frosted? |
300 let g:syntastic_python_checkers = ['flake8'] ", 'pylint'] | 300 let g:syntastic_python_checkers = ['flake8'] ", 'pylint'] |
301 let g:syntastic_python_python_exec = 'python3' | 301 let g:syntastic_python_python_exec = 'python3' |
302 let g:syntastic_python_flake8_args='--ignore=W191,W391' | |
302 | 303 |
303 " }}} | 304 " }}} |
304 | 305 |
305 " Supertab {{{ | 306 " Supertab {{{ |
306 | 307 |
619 " Keep search matches in the middle of the window. | 620 " Keep search matches in the middle of the window. |
620 nnoremap n nzvzz | 621 nnoremap n nzvzz |
621 nnoremap N Nzvzz | 622 nnoremap N Nzvzz |
622 | 623 |
623 " YCM mappings. | 624 " YCM mappings. |
624 nnoremap <Leader>jj :YcmCompleter GoToImprecise<cr>zv | 625 augroup VimRC_YouCompleteMe |
625 nnoremap <Leader>jd :YcmCompleter GoToDefinition<cr>zv | 626 autocmd! |
626 nnoremap <Leader>jh :YcmCompleter GoToDeclaration<cr>zv | 627 autocmd FileType cpp nnoremap <Leader>jj :YcmCompleter GoToImprecise<cr>zv |
627 nnoremap <Leader>ji :YcmCompleter GoToInclude<cr> | 628 autocmd FileType cpp nnoremap <Leader>jd :YcmCompleter GoToDefinition<cr>zv |
628 nnoremap <Leader>jc :YcmCompleter GetDoc<cr> | 629 autocmd FileType cpp nnoremap <Leader>jh :YcmCompleter GoToDeclaration<cr>zv |
630 autocmd FileType cpp nnoremap <Leader>ji :YcmCompleter GoToInclude<cr> | |
631 autocmd FileType cpp nnoremap <Leader>jc :YcmCompleter GetDoc<cr> | |
632 augroup END | |
633 | |
634 " OmniSharp mappings | |
635 augroup VimRC_OmniSharp | |
636 autocmd! | |
637 autocmd FileType cs setlocal omnifunc=OmniSharp#Complete | |
638 autocmd BufEnter,TextChanged,InsertLeave *.cs SyntasticCheck | |
639 autocmd CursorHold *.cs call OmniSharp#TypeLookupWithoutDocumentation() | |
640 autocmd FileType cs nnoremap <Leader>jj :OmniSharpGotoDefinition<cr> | |
641 autocmd FileType cs nnoremap <Leader>x :OmniSharpFixIssue<cr> | |
642 autocmd FileType cs nnoremap <Leader>fx :OmniSharpFixUsings<cr> | |
643 autocmd FileType cs nnoremap <Leader>tt :OmniSharpTypeLookup<cr> | |
644 autocmd FileType cs nnoremap <Leader>dc :OmniSharpDocumentation<cr> | |
645 augroup END | |
629 | 646 |
630 " }}} | 647 " }}} |
631 | 648 |
632 " Folding {{{ | 649 " Folding {{{ |
633 | 650 |