Skip to content

Commit

Permalink
Don't use color-words diff, new bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Choi committed Feb 16, 2011
1 parent 790523b commit 55f0cbb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.markdown
Expand Up @@ -343,9 +343,9 @@ common wiki this way, in peer to peer fashion.
SoyWiki provides a few convenient key mappings to view the revision
history of a wiki page:

* `,l` shows a `git-log` view of the revision history of the current page
* `,lp` shows a `git-log -p` view of the revision history of the current page
* `,ls` shows a `git log --stat` view of the current page's revision history
* `,b` shows a `git-blame` view of the current page, which shows when each line was added and by whom.
* `:SWLogStat` shows a `git log --stat` view of the current page's revision history

You can always bypass Vim and SoyWiki altogether and use Git directly to
inspect your revision history. The Git repo for your SoyWiki wiki will
Expand Down
5 changes: 3 additions & 2 deletions lib/soywiki.vim
Expand Up @@ -278,7 +278,7 @@ func! s:show_revision_history(stat)
if (a:stat)
exec ":!git log --stat " . bufname('%')
else
exec ":!git log --color-words -p " . bufname('%')
exec ":!git log -p " . bufname('%')
end
endfunc

Expand Down Expand Up @@ -598,8 +598,9 @@ func! s:prep_buffer()
command! -buffer SWDelete :call s:delete_page()

command! -buffer SWLog :call s:show_revision_history(0)
noremap <buffer> <leader>l :call <SID>show_revision_history(0)<CR>
noremap <buffer> <leader>lp :call <SID>show_revision_history(0)<CR>
command! -buffer SWLogStat :call s:show_revision_history(1)
noremap <buffer> <leader>ls :call <SID>show_revision_history(1)<CR>
command! -buffer SWBlame :call s:show_blame()
noremap <buffer> <leader>b :call <SID>show_blame()<CR>
Expand Down

0 comments on commit 55f0cbb

Please sign in to comment.