commit 436cb3427b719806b861ebe2bc675dd2088abce3 parent 8a80680552be1f7a2276a0a12ad89e2fbe8017bb Author: Alex Balgavy <a.balgavy@gmail.com> Date: Fri, 1 Mar 2019 22:09:08 +0100 Make mappings for C files Former-commit-id: 457e235f6473210e10ab38a48ba56d08c8e74f6c Diffstat:
M | vim/autocmd.vimrc | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/vim/autocmd.vimrc b/vim/autocmd.vimrc @@ -17,3 +17,9 @@ augroup insertbinds autocmd FileType markdown inoremap ;5 ##### autocmd FileType markdown inoremap ;6 ###### augroup END + +augroup mappings + autocmd! + autocmd FileType c nnoremap <leader>mm :silent make<CR>\|:redraw!<CR>\|:cwindow<CR> + autocmd FileType c nnoremap <leader>mc :silent make clean<CR>\|:redraw!<CR> +augroup END