1 line
1.3 KiB
Plaintext
1 line
1.3 KiB
Plaintext
<!-- SC_OFF --><div class="md"><p>Anyone having problem with launching vterm from a TRAMP buffer?<br/> 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).</p> <p>I tried this simple function, but didn't work either.</p> <pre><code>(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))) </code></pre> <p>It seems like vterm tries to open the terminal in the remote location but doesn't succeed. </p> <p>A workaround I use is to jump to scratch buffer and launch vterm from there, or use ansi-term.</p> </div><!-- SC_ON -->   submitted by   <a href="https://www.reddit.com/user/MhvxvLvJrg"> /u/MhvxvLvJrg </a> <br/> <span><a href="https://www.reddit.com/r/emacs/comments/qzix97/cannot_launch_vterm_in_a_tramp_buffer/">[link]</a></span>   <span><a href="https://www.reddit.com/r/emacs/comments/qzix97/cannot_launch_vterm_in_a_tramp_buffer/">[comments]</a></span> |