I am trying to associate a hotkey with opening vim with recent history browsing, thus I have wrote the following line
gnome-terminal -x "vim -c ':browse old'"
Error: Failed to execute child process "vim -c ':browse old'" (No such file or directory)
Good news! The
-x option of
gnome-terminal makes it very easy to start a new terminal and run a new program in it. Just do:
gnome-terminal -x vim -c ':browse old'
The meaning of
-x is that all subsequent arguments are passed to the program that you run, so no quoting is needed.