Created
May 16, 2015 01:20
-
-
Save jaysw/edc13651ceb5615c7aaa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# tricks so that ctrl-s works in vim | |
alias vim="stty stop '' -ixoff ; vim" | |
# `Frozing' tty, so after any command terminal settings will be restored | |
ttyctl -f | |
# bash | |
# No ttyctl, so we need to save and then restore terminal settings | |
vim() | |
{ | |
local STTYOPTS="$(stty --save)" | |
stty stop '' -ixoff | |
command vim "$@" | |
stty "$STTYOPTS" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment