sometimes my file just freezes in my vi |vim, what happened?

Viewed 106049

Sometimes when I edit my file using vi or vim, my file just freezes. Even if I type Ctrl+C or Ctrl+D, it still freezes there. I kill -9 <pid> from another terminal, the pid is killed, but the file still freezes there.

I guess I must have typed some combination of key which I do not know. Does anybody have an idea?

4 Answers

If Ctrl+S isn't your problem (as in pra's answer) this may help you.

If you've tried to install a bunch of custom plugins using Vundle, sometimes things go awry. You can try to remove these packages manually and see if it helps. Find out where the plugins have been written to - in my case they were all inside the .vim/bundle directory because I used git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim to install Vundle. So once inside the .vim directory you can wipe the entire bundle folder to remove all plugins, and start again, by executing rm -rf bundle.

Hope it helps!

You can try to change keyboard layout. Vi|vim interacts with English(-like?) input only.

Related