emacs/var/elfeed/db/data/33/33ed8f0b6fe8fb5c2aed1e352906cf6433a866ed
2022-01-03 12:49:32 -06:00

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&#39;t work; anyways, this is for another post).</p> <p>I tried this simple function, but didn&#39;t work either.</p> <pre><code>(defun run-my-vterm () (interactive) (let* ((buffer &quot;vterm&quot;)) (require &#39;vterm) (if (buffer-live-p (get-buffer buffer)) (switch-to-buffer buffer) (vterm)) (vterm-send-string (concat &quot;cd &quot; &quot;~&quot;)) (vterm-send-return))) </code></pre> <p>It seems like vterm tries to open the terminal in the remote location but doesn&#39;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 --> &#32; submitted by &#32; <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> &#32; <span><a href="https://www.reddit.com/r/emacs/comments/qzix97/cannot_launch_vterm_in_a_tramp_buffer/">[comments]</a></span>