I have three files named one.txt
, two.txt
, three.txt
.
I've made a file dummy
which contains:
gvim one.txt
gvim two.txt
gvim three.txt
Here, when I source dummy
, it opens all the 3 files simultaneously.
What I intend is to open two.txt
only when I close one.txt
, and open three.txt
only when I close two.txt
and so on.
What modification should I do in dummy to make it work as expected?
CodePudding user response:
You need -f
to mean foreground :
gvim -f one.txt
gvim -f two.txt
gvim -f three.txt