Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I prevent Ctrl+S from suspending output in Yakuake?

I need it to give it to the opened program in the console (such as Vim, I want to remap Ctrl+S to save in Vim).

share|improve this question
up vote 2 down vote accepted

Add this to your .bashrc or .zshrc

stty ixany
stty ixoff -ixon
share|improve this answer
1  
wow, when i press ctrl+s, it shows (i-search)'': something that i don't know what the use for.. (i know that ctrl+r do a reverse search, but this one does nothing) – Kokizzu Nov 3 '13 at 13:52
1  
@Kokizzu Try to press ctrl-p for at least one time and press ctrl-s. You will be able to search the history commands you've scrolled through using ctrl-p – Yang Liu Nov 4 '13 at 4:25

nevermind, found it :3

just add these on bashrc

vim() {
  local STTYOPTS="$(stty --save)"
  stty stop '' -ixoff
  command vim "$@"
  stty "$STTYOPTS"
}

reference: http://vim.wikia.com/wiki/Map_Ctrl-S_to_save_current_or_new_files

share|improve this answer

You must log in to answer this question.

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