Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Minor vim diff tweaks.
- tab-multi-diff uses diffthis instead of diffthis. This behaves more
  like vimdiff. For example, it sets scrollbind and also (unfortunately)
  foldenable
- vd disables folding and foldcolumn. I can't stand diff folding for
  some reason.
  • Loading branch information
xenomachina committed Feb 10, 2012
1 parent 9c1b146 commit 162e043
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion bin/vd
Expand Up @@ -2,5 +2,11 @@
#
# Like gvimdiff, but can diff multiple pairs of files. (Also, uses
# MacVim on Macs.)
#
# Also disables folding. I hate diff folding.

exec v -c 'silent call TabMultiDiffMaximized()' "$@"
exec v \
-c 'silent call TabMultiDiffMaximized()' \
-c 'tabdo windo set nofoldenable foldcolumn=0' \
-c 'tabfirst' \
"$@"
2 changes: 1 addition & 1 deletion vim/plugin/tab-multi-diff.vim
Expand Up @@ -73,6 +73,6 @@ function! s:AddBufferToTab()
endif
let s:tab_multi_diff = ! s:tab_multi_diff
exe 'b ' . buf
set diff
diffthis
tabfirst
endfun

0 comments on commit 162e043

Please sign in to comment.