~gpanders/dotfiles

60d13df139079eb79615610c512f98c6d8ebef65 — Gregory Anders a month ago f5c25da
vim: add mappings for running make
1 files changed, 4 insertions(+), 0 deletions(-)

M .vim/vimrc
M .vim/vimrc => .vim/vimrc +4 -0
@@ 303,6 303,10 @@ nnoremap <expr> yo<Bar> ':setlocal ' . (&cursorcolumn ? 'no' : '') . "cursorcolu
nnoremap <expr> yod ':' . (&diff ? 'diffoff' : 'diffthis') . "\<CR>"
nnoremap <expr> yos ':setlocal ' . (&spell ? 'no' : '') . "spell\<CR>"

nnoremap m<CR> :make<CR>
nnoremap m<Space> :make<Space>
nnoremap m? :set makeprg?<CR>

function! Substitute(type, ...) abort
    call feedkeys(":'[,']s/" . expand('<cword>') . "//g\<Left>\<Left>", 'n')
endfunction