# HG changeset patch # User Steve Losh # Date 1315837325 14400 # Node ID 7c962b6d40dd26024dda946cbc011170a30c0387 # Parent 986fd59e3fae45a407582c6d952645532b216aa9 Update. diff -r 986fd59e3fae -r 7c962b6d40dd vim/.vimrc --- a/vim/.vimrc Fri Sep 09 12:33:24 2011 -0400 +++ b/vim/.vimrc Mon Sep 12 10:22:05 2011 -0400 @@ -688,9 +688,6 @@ inoremap pumvisible() ? '' : '=pumvisible() ? "\up>" : ""' inoremap pumvisible() ? '' : '=pumvisible() ? "\Down>" : ""' -" Rainbows! -nmap R :RainbowParenthesesToggle - " Sudo to write cmap w!! w !sudo tee % >/dev/null @@ -1044,19 +1041,25 @@ " }}} " }}} -" Hg ------------------------------------------------------------------------- {{{ +" Hg -------------------------------------------------------------------------- {{{ function! s:HgDiff() diffthis + let fn = expand('%:p') let ft = &ft + wincmd v edit __hgdiff_orig__ + setlocal buftype=nofile + normal ggdG execute "silent r!hg cat --rev . " . fn normal ggdd + execute "setlocal ft=" . ft + diffthis diffupdate endf @@ -1071,13 +1074,7 @@ edit __hgblame__ vertical resize 28 - setlocal scrollbind - setlocal winfixwidth - setlocal nolist - setlocal nowrap - setlocal nonumber - setlocal buftype=nofile - setlocal ft=none + setlocal scrollbind winfixwidth nolist nowrap nonumber buftype=nofile ft=none normal ggdG execute "silent r!hg blame -undq " . fn