From: Vijay Kumar Adhikari on
When I ssh to my remote server to run Matlab, "edit file.m" opens
file.m using "vi" when I am not doing X-forwarding. However, when I am
doing X-forwarding, it opens some other GUI-based editor which is not
what I want. What do I need to change so that "edit file.m" always
opens file.m using vi/vim?

Thank you for your time.
From: kk KKsingh on
Vijay Kumar Adhikari <vijaykcm(a)gmail.com> wrote in message <6edd534e-17f6-47a7-a470-897ae16f558a(a)s9g2000yqd.googlegroups.com>...
> When I ssh to my remote server to run Matlab, "edit file.m" opens
> file.m using "vi" when I am not doing X-forwarding. However, when I am
> doing X-forwarding, it opens some other GUI-based editor which is not
> what I want. What do I need to change so that "edit file.m" always
> opens file.m using vi/vim?
>
> Thank you for your time.

Instead of using edit file.m use either !vi file.m & or !vim file.m &..I always use !emacs file.m

Cheers

Kumar