6

I'm using Ubuntu 12.04 and gnome-terminal 3.4.1.1, and I'm trying to map ctrl + s to :update in vim.

I added this to my vimrc: map <C-s> :update<CR>

I also tried adding this to my bashrc: stty -ixon -ixoff

However, the terminal still seems to override my keymapping.

1
  • Does thishelp?
    – Mitch
    Aug 31, 2013 at 7:31

1 Answer 1

6

You can disable Ctrl-S in a terminal by:

stty stop undef

You can put this line in your ~/.bashrc file to make the change permanent. You can also reenable Ctrl-S with:

stty stop ^s

You must log in to answer this question.

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