1

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).

2 Answers 2

2

Add this to your .bashrc or .zshrc

stty ixany
stty ixoff -ixon
2
  • 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, 2013 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, 2013 at 4:25
1

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

You must log in to answer this question.

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