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.

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
add comment

2 Answers 2

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 –  Real Yang Nov 4 '13 at 4:25
add comment

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
add comment

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.