Skip to content

Comment on My Text Editor Journey: Vim, Spacemacs, Atom and Sublime Textparent

Comments

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>

Ah, 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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.