1

using vim via ssh on a machine with an x server running throws an X error. Specifically:

>vim
BadWindow (invalid Window parameter)
Vim: Got X error
Vim: Finished.

This does not occur on my xorg-free server, so how can I force vim to behave as a console app?

[Edit]: I don't want to use X forwarding for a console app.

1 Answer 1

2

Have you tried the -X switch? This will disable the X integration features of Vim such as clipboard integration, so X is not needed to run it.

2
  • its a capital '-X' rather than the '-x' which edits an encrypted file, but it can be found by a simple vim --help. I just don't have my eyes in the right sockets today.
    – brice
    Commented Jan 31, 2010 at 23:04
  • Yep, it's in man vim: manpagez.com/man/1/vim
    – user1931
    Commented Jan 31, 2010 at 23:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .