Reset a file to last committed version in vim

in code

Random but useful. Eh, it works for me. My entire vim profile is available to pull at GitHub.

nmap <leader>gr :!git checkout %<CR>

A Summer of Running

in running

Achill Half Marathon

in running

Your email address will not be published. Required fields are marked *