Mercurial > dotfiles
comparison .chezmoitemplates/config.vim @ 514:f0c94c3f5fd9
Use new user_command api to define commands
author | zegervdv <zegervdv@me.com> |
---|---|
date | Wed, 29 Dec 2021 11:44:10 +0100 |
parents | 91c0d97cd4d4 |
children | d919c1590230 |
comparison
equal
deleted
inserted
replaced
513:2476af02ba12 | 514:f0c94c3f5fd9 |
---|---|
584 " | 584 " |
585 | 585 |
586 " Plugin settings | 586 " Plugin settings |
587 " Gundo tree | 587 " Gundo tree |
588 nnoremap <leader>u :GundoToggle<CR> | 588 nnoremap <leader>u :GundoToggle<CR> |
589 " | 589 |
590 " Projectionist | 590 |
591 let g:projectionist_heuristics = { | |
592 \ "*.c": { | |
593 \ "*.c": { | |
594 \ "alternate": "{}.h", | |
595 \ "type": "source", | |
596 \ "template": ["#include \"{}.h\""], | |
597 \ "make": "make -wC {project}" | |
598 \ }, | |
599 \ "*.h": { | |
600 \ "alternate": "{}.c", | |
601 \ "type": "header", | |
602 \ "template": ["#ifndef {uppercase}_H", "#define {uppercase}_H", "", "#endif"] | |
603 \ }, | |
604 \ "Makefile": {"type": "makefile"}, | |
605 \ }, | |
606 \ "*.py": { | |
607 \ "*.py": { "make": "ipython {}" } | |
608 \ }, | |
609 \ } | |
610 " | |
611 " Grep | |
612 let g:grepper = { | |
613 \ 'tools': ['ag', 'hg'], | |
614 \ 'highlight': 1, | |
615 \ 'ag': { | |
616 \ 'grepprg': 'rg --vimgrep', | |
617 \ }} | |
618 | |
619 nnoremap gs <plug>(GrepperOperator) | |
620 xnoremap gs <plug>(GrepperOperator) | |
621 | |
622 | |
623 command! -nargs=* -complete=file Ag Grepper -noprompt -tool ag -grepprg rg --vimgrep <args> | |
624 " | 591 " |
625 " Vinegar/NetRW | 592 " Vinegar/NetRW |
626 autocmd FileType netrw setl bufhidden=delete | 593 autocmd FileType netrw setl bufhidden=delete |
627 " | 594 " |
628 | 595 |