From 5d82460b4d19ec01390fd27c2b32c21e9b5e64e3 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Wed, 25 Mar 2015 15:39:18 +0100 Subject: [PATCH] Enabled the git/hg blame commands; use visual mode --- .vimrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.vimrc b/.vimrc index 831bff7..8639cae 100644 --- a/.vimrc +++ b/.vimrc @@ -160,8 +160,10 @@ map jt :%!json_xs -f json -t json-pretty " Fly through buffers instead of cycling nnoremap l :ls:b -"vmap g :!git blame =expand("%:p") \| sed -n =line("'<") ,=line("'>") p -"vmap h :!hg blame -fu =expand("%:p") \| sed -n =line("'<") ,=line("'>") p +" Git and Mercurial 'blame' command. First select lines in visual modes, then +" hit the appropriate leader key sequence (e.g., \g for git blame) +vmap g :!git blame =expand("%:p") \| sed -n =line("'<") ,=line("'>") p +vmap h :!hg blame -fu =expand("%:p") \| sed -n =line("'<") ,=line("'>") p " Enables input of special characters by a combination of two characters.