Permalink
Browse files

More mercurial stuff

  • Loading branch information...
jlfwong committed May 3, 2012
1 parent 42fcac1 commit bc0ccafb04d1b0d028e15ac4ddd6057745e43ac5
Showing with 33 additions and 0 deletions.
  1. +10 −0 .hgignore_global
  2. +1 −0 .hgrc
  3. +22 −0 .vim/plugin/hgblame.vim
View
@@ -0,0 +1,10 @@
+syntax: glob
+.DS_Store?
+.DS_Store
+*.pyc
+.svn
+Thumbs.db
+Icon?
+*.swp
+tags
+*.swo
View
1 .hgrc
@@ -5,6 +5,7 @@ attend = annotate, cat, diff, export, glog, log, qdiff, slog, dlog, gslog, sglog
[ui]
username = Jamie Wong <jamiewong@khanacademy.org>
+ignore = ~/dotfiles/.hgignore_global
[web]
#cacerts = ~/.hg/dummycert.pem
View
@@ -0,0 +1,22 @@
+" ----- Hg Blame -----
+" From https://bitbucket.org/sjl/dotfiles/src/tip/vim/.vimrc
+function! s:HgBlame()
+ let fn = expand('%:p')
+
+ wincmd v
+ wincmd h
+ edit __hgblame__
+ vertical resize 28
+
+ setlocal scrollbind winfixwidth nolist nowrap nonumber buftype=nofile ft=none
+
+ normal ggdG
+ execute "silent r!hg blame -undq " . fn
+ normal ggdd
+ execute ':%s/\v:.*$//'
+
+ wincmd l
+ setlocal scrollbind
+ syncbind
+endf
+command! -nargs=0 HgBlame call s:HgBlame()

0 comments on commit bc0ccaf

Please sign in to comment.