commit 86b27192e3d75152b943e08ccea61b71b9472546 parent 154cec716e30068774950387a29133774a23b0ee Author: Jan Pobrislo <ccx@webprojekty.cz> Date: Fri, 20 Jun 2014 17:23:19 +0200 fsvimdiff Diffstat:
| A | bin/fsvimdiff | | | 15 | +++++++++++++++ |
1 file changed, 15 insertions(+), 0 deletions(-)
diff --git a/bin/fsvimdiff b/bin/fsvimdiff @@ -0,0 +1,15 @@ +#!/bin/sh +export ROOT1 +ROOT1="$1" +export ROOT2 +ROOT2="$2" +opts='diff scrollbind cursorbind scrollopt+=hor nowrap fdm=diff readonly nomodified buftype=nofile bufhidden=delete' +exec vim \ + +'0r!ROOT="$ROOT1" fslist' \ + +setlocal\ $opts \ + +"exe 'file '.\$ROOT1.'.fileset'" \ + +'rightb vnew' \ + +'0r!ROOT="$ROOT2" fslist' \ + +setlocal\ $opts \ + +"exe 'file '.\$ROOT2.'.fileset'" \ + +norm\ ggzM