0

I don't know why, but my vi editor seems to be encrypted. This is the test I ran.

gnome-open /usr/share/doc/xdemorse/examples/xdemorserc.example.gz

When I did this I could read it just fine. But then when I typed "vi" followed by the same file it is encrypted and I cannot read it at all.

1
  • Yes that was the problem. Jul 5, 2015 at 7:09

1 Answer 1

6

You're opening a compressed file. Vim in vi-mode doesn't support reading from compressed files, since this functionality is provided by plugins and plugins aren't enabled when in vi-mode (when compatible is set). Instead, try:

vim /usr/share/doc/xdemorse/examples/xdemorserc.example.gz

It might be the case that you have only vim-tiny installed. Install a more feature-complete version and then try again:

sudo apt-get install vim

You must log in to answer this question.

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