From 361fc9baaa3645d5d3b9bb93d15bdf3e014614c8 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Wed, 21 Jan 2015 17:37:07 +0100 Subject: [PATCH] hg and git blame, but they don't seem to work with my current setup somehow --- .vimrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.vimrc b/.vimrc index ed050e4..6f1c8b5 100644 --- a/.vimrc +++ b/.vimrc @@ -118,6 +118,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 + + " Enables input of special characters by a combination of two characters. " Example: Type 'a', erase it by typing CTRL-H - and then type ':' - this " results in the umlaut: รค So Vim remembers the character you have erased and