you can create the following function, in your .bashrc or the command line:
mydiff () {
vimdiff $1 $2 +'1sp
se noscb
winc l
1sp
se noscb
winc h
winc j'
}
Explanation :
- 1sp
1sp: creates a split - se noscb
se noscb: set noscrollbind for the newly created window - winc l
winc l: go the window on the right - 1sp
1sp: do a screen split - se noscb
se noscb: set noscrollbind for the newly created window - winc h
winc hand winc jwinc j: go back to the first window
then just call the function as follows:
mydiff table1 table2