3 ms·
While doling out vim tips, here are two quality of life improvements you can add to your .vimrc: nmap ; : set grepprg=git\ grep\ -n nmap <F7> :cp<
by maskros 10y ago
While doling out vim tips, here are two quality of life improvements you can add to your .vimrc:
nmap ; :
set grepprg=git\ grep\ -n
nmap <F7> :cp<CR>
nmap <F8> :cn<CR>
- dghf 10y agoAh, I'm one of those weirdos who actually uses ; (and ,). Though I guess I could noremap ; : noremap : ; But that might take muscle memory too much time to adapt. (And would it break plugins?) I've already got F7 and F8 mapped, but I'll hunt out a spare key(sequence) for the mappings you suggest.