Set diff mode columns sensibly.
authorIain Patterson <me@iain.cx>
Thu, 9 Jul 2009 14:25:11 +0000 (15:25 +0100)
committerIain Patterson <me@iain.cx>
Thu, 16 Jul 2009 14:34:45 +0000 (15:34 +0100)
.vimrc

diff --git a/.vimrc b/.vimrc
index 6e26f27..65d8895 100644 (file)
--- a/.vimrc
+++ b/.vimrc
@@ -467,7 +467,9 @@ se diffopt=filler,iwhite
 
 " Expand window when doing a vertical diff.
 if &diff
-  let &columns = 164
+  if &columns < 161
+    let &columns = &columns * 2
+  endif
 endif
 
 " Remember that we are opening the quickfix window.