Warm tip: This article is reproduced from serverfault.com, please click

How to stop SSH X11 forwarding when using vim?

发布于 2020-12-01 00:49:09

When I launch vim on command line via SSH connection with X11 forwarding (eg. ssh -X or set ssh_config X11Forwarding yes), XQuartz.app is also launched. It takes a bit of time, so I cannot edit file quickly. How to stop vim's X11 forwarding?

My computer: macOS Catalina
Remote computer: Linux / VIM - Vi IMproved 7.4 (2013 Aug 10)

Questioner
kkk
Viewed
0
CS Pei 2020-12-01 09:08:45

I think you can try the following command,

vim -X

-X means don't connect to the X server