Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using split panes in tmux - one being vim, other shell. Sometimes, around once a day, vim freezes. I can move between panes, perform any tmux commands, just vim doesn't react to anything. This happens only with tmux. My only solution for now is to kill that pane and create new one.

share|improve this question
4  
This has never happened to me, and I have used tmux+Vim in that way extensively. This does not mean it cannot happen to you — but it means you will have to try to more precisely locate when it happens to try to figure out why. Relevant information is what terminal you are using. One idea: you are not just accidentally hitting Ctrl+S in the Vim window? In that case: press Ctrl+Q to "unfreeze". –  Daniel Andersson Feb 17 '13 at 12:07
    
You can post it as answer and you'll get some reputation :) –  Ondrej Slinták Feb 17 '13 at 12:25
    
Just to clarify, I use Ubuntu 12.10, tmux, zsh and gnome terminal emulator. My tmux prefix is rebound to ctrl+s. If I hit prefix + ctrl+s, vim freezes. ctrl+q without prefix unfreezes it. It puzzles me why this doesn't happen in shell though. –  Ondrej Slinták Feb 17 '13 at 12:33

2 Answers 2

up vote 45 down vote accepted

You might have hit Ctrl+S, which turns off flow control in terminals and stops the terminal from accepting input. It is reenabled by pressing Ctrl+Q.

share|improve this answer
1  
When you're just starting to use vim/terminal editors as your main editor, this is a very common problem. Later on, you'll end up having :wq spread throughout all your documents (or ZZ, I don't judge) and feel silly. –  Rob Jul 29 '13 at 15:14
    
Amazing how you correctly guessed the problem from such such a vague description. Thanks! –  NewWorld May 30 at 8:00
    
Holy ...! I've been having this issue for years, and never actually searched for a solution. This answer was the first solution I found, and it literally took me 3 seconds... All those hours wasted, and you had the solution just a couple of seconds away. I wish I could upvote you more (and downvote myself). Thanks! –  simendsjo Oct 10 at 21:29
    
Another time you might have this issue is when you're switching between editors (emacs and vim, for instance). They have different "save" commands, muscle memory confuses and hence the freezing. –  Utkarsh Sinha Nov 11 at 14:26

For me, this turned out to be a gpm problem. Run "sudo service gpm restart". See https://bugzilla.redhat.com/show_bug.cgi?id=526366 for the related bug.

share|improve this answer

Your Answer

 
discard

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.