I am using emacs I find that sometimes I have 2 files separated into 2 windows.
For example: I open 1 file using C-x C-f file1.c RET
and I split t
I use buffer-move for this. Now if you are working on the buffer on the left side, calling 'buf-move-right' will swap it with the one on the right. I guess this is what you want.