Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to run vim via X11 (over SSH). Vim comes pre-installed on my NAS (running Debian), however the GUI is not.

When I run vim -g, I get this error:

E25: GUI cannot be used: Not enabled at compile time

Is there any way to install the GUI by itself, or do I need to reinstall vim altogether?

share|improve this question
Or you can edit files remotely through sshfs – Gilles Oct 19 '11 at 9:56
up vote 5 down vote accepted

You can install apt-get install either vim-gtk or vim-gnome or even vim-lesstif to get a vim gui.

share|improve this answer
does it matter which? – Jeff Oct 19 '11 at 2:40
@Jeff Not really; I'd install -gtk if you don't have (and don't want) gnome installed. See askubuntu.com/questions/33260/… – Shawn J. Goff Oct 19 '11 at 3:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.