0

This question already has an answer here:

I use emacs a lot, and type C-x s to save there. When I am in vim running inside tmux on a remote machine, if I accidentally type C-x s, the vim instance completely freezes up, and the only way out is to send tmux the kill-pane command.

How can I configure vim/tmux to block this from happening?

marked as duplicate by mattdm, elbarna, Thomas Dickey, Jeff Schaller, jimmij Sep 12 '18 at 1:46

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Are you in Insert mode at the time? – JdeBP Sep 11 '18 at 18:06
  • I've checked, it freezes vim in insert mode as well as command mode – tlehman Sep 11 '18 at 18:07
  • 2
    are you typing control+s ? that can freeze terminals until control+q is pressed – thrig Sep 11 '18 at 18:26
2

@thrig answered my question, I can type C-q to get out of the frozen state I was in. Thank you!

  • This is an interesting difference between VIM and NeoVIM. NeoVIM's raw mode turns off flow control special character processing in the line discipline. VIM's leaves it on. – JdeBP Sep 12 '18 at 1:19
  • I've been wondering how neovim is different than vim, thanks for sharing! – tlehman Sep 12 '18 at 2:16

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