Anyone having problem with launching vterm from a TRAMP buffer?
When I am in a TRAMP buffer I cannot launch vterm. I do not want a vterminal in the remote location of the buffer, but only a simple vterm in my home directory. (I would like to also have a vterm in the remote directory, but it doesn't work; anyways, this is for another post).
I tried this simple function, but didn't work either.
(defun run-my-vterm () (interactive) (let* ((buffer "vterm")) (require 'vterm) (if (buffer-live-p (get-buffer buffer)) (switch-to-buffer buffer) (vterm)) (vterm-send-string (concat "cd " "~")) (vterm-send-return)))
It seems like vterm tries to open the terminal in the remote location but doesn't succeed.
A workaround I use is to jump to scratch buffer and launch vterm from there, or use ansi-term.