Mercurial > dotfiles
diff .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 |
line wrap: on
line diff
--- a/.chezmoitemplates/config.vim Tue Dec 28 11:43:51 2021 +0100 +++ b/.chezmoitemplates/config.vim Wed Dec 29 11:44:10 2021 +0100 @@ -586,41 +586,8 @@ " Plugin settings " Gundo tree nnoremap <leader>u :GundoToggle<CR> -" -" Projectionist -let g:projectionist_heuristics = { - \ "*.c": { - \ "*.c": { - \ "alternate": "{}.h", - \ "type": "source", - \ "template": ["#include \"{}.h\""], - \ "make": "make -wC {project}" - \ }, - \ "*.h": { - \ "alternate": "{}.c", - \ "type": "header", - \ "template": ["#ifndef {uppercase}_H", "#define {uppercase}_H", "", "#endif"] - \ }, - \ "Makefile": {"type": "makefile"}, - \ }, - \ "*.py": { - \ "*.py": { "make": "ipython {}" } - \ }, - \ } -" -" Grep -let g:grepper = { - \ 'tools': ['ag', 'hg'], - \ 'highlight': 1, - \ 'ag': { - \ 'grepprg': 'rg --vimgrep', - \ }} - -nnoremap gs <plug>(GrepperOperator) -xnoremap gs <plug>(GrepperOperator) -command! -nargs=* -complete=file Ag Grepper -noprompt -tool ag -grepprg rg --vimgrep <args> " " Vinegar/NetRW autocmd FileType netrw setl bufhidden=delete