I think you're doing it wrong. you can't simply open two vi's in a row (in a single terminal).
open a terminal and write what you're writing to the process and you'll see it doesn't work.
In your case you have to exit first vi to open another or open another shell (process).
in other cases you can use ";" as a separator of commands, ie "cd /home/my_user/;ls;touch test.file;".