I want to create a command in vim which opens the currently open file in a new viw session which is inside a new tmux session.
Something like this:
Open vim with test.c -> Execute given command -> Exit vim -> Start tmux -> Go to the working directory where vim was -> Open the file which was opened
I have an idea how to make a script which opens tmux and vim on a given file, but I don't know how to make a command which first exits from vim and then runs a command automatically.