Re:Vim's 400 line function to wait for keyboard input
by MereInterest on Wednesday July 15, 2015 @07:24PM
(#9894653)
If you run "stty -ixon", it will prevent Ctrl-S from pausing the terminal. I understand that feature in the days of slow connections, but it feels rather silly at this point.
Re:Vim's 400 line function to wait for keyboard input
by nitrogen on Wednesday July 15, 2015 @07:40PM
(#9894719)
I use it to pause output from a running batch job (e.g. deployment).
Re:Vim's 400 line function to wait for keyboard input
by joeheyming on Wednesday July 15, 2015 @06:27PM
(#9894444)
This was my biggest hurdle to learning vim, I kept hitting Ctrl-S...
Re:Vim's 400 line function to wait for keyboard input
by firebones on Wednesday July 15, 2015 @09:53PM
(#9895124)
This might help:
http://vim.wikia.com/wiki/Map_Ctrl-S_to_save_current_or_new_...
(Caveat emptor, can't speak from first hand experience.)
Re:Vim's 400 line function to wait for keyboard input
by PhasmaFelis on Wednesday July 15, 2015 @07:52PM
(#9894778)
That is fascinating to me, in a train-wreck sort of way.
We had a discussion a few days ago about the ways in which some interfaces (command line in particular) can be user-hostile. (https://news.ycombinator.com/item?id=9831429) Vim's Ctrl-S appears to be a function, keyboard-adjacent to several commonly-used functions, whose main effect for many users is "cause the program to fail immediately with no indication of how to fix it." I don't think I could make up a better example of user-hostile design if I tried.
Re:Vim's 400 line function to wait for keyboard input
by 6502nerdface on Wednesday July 15, 2015 @09:00PM
(#9895006)
It is not "Vim's Ctrl-S"; it's the terminal emulator's ctrl-s. Same thing happens in less, for example.
Re:Vim's 400 line function to wait for keyboard input
by PhasmaFelis on Thursday July 16, 2015 @05:54PM
(#9900112)
Ah, my mistake. Same criticism applies, though; possibly more so, as a terminal emulator running within a GUI would find it even easier to display a useful status message or similar.
Re:Vim's 400 line function to wait for keyboard input
by omaranto on Wednesday July 15, 2015 @06:07PM
(#9894362)
I've never heard of Ctrl-S causing a crash, though. So your explanation at most accounts for the hangs.
Re:Vim's 400 line function to wait for keyboard input
by jrbrtsn on Thursday July 16, 2015 @08:18AM
(#9896706)
I've used vim pretty much every work day in the last 15 years or so, and I can count the number of times it's crashed on one hand. If you can actually verify that it crashed (i.e. core dump file), then you've got the source available, and you can send in the patch.
Note: CTRL-S does not work on all terminals and might block further input, use CTRL-Q to get going again.