vim(五) Ctrl + S ,ctrl +Q
来源:互联网 发布:淘宝店铺 售假 申诉 编辑:程序博客网 时间:2024/05/18 00:37
Ctrl-S 可能算是 Windows 下最常用的保存快捷键了,但是在类 Unix 系统下面却不是起保存的功能。
最近都是在用 Cygwin +VIM 阅读和编写代码,时不时会不注意按到 Ctrl-S,导致 VIM 跟挂住了一样,啥都无法干,最后只能重启 shell,一开始我以为是 VIM 在 Cygwin 下面有啥不适应的,所以就在 ~/.vimrc 里面把 Ctrl-S 重定义为保存文件的快捷键,不料还是不行。
今天终于受不了就 Google 了一把,才知道 Ctrl-S 原来在Linux 下是用于停止显示终端的输出用的,这个时候屏幕就像定住了一样,终端不会继续输出,也不会响应你的输入,所以不知道的时候会以为终端挂起了。其实只需要按一下 Ctrl-Q 即可恢复输入。
这个功能可以用于长时间编译的时候随时把屏幕输出停住,但是编译仍然会继续,这样就不会影响到编译时间了。VIM doc 里面关于这个问题的描述如下:
32.1. I am running Vim in a xterm. When I press the CTRL-S key, Vim
freezes. What should I do now?
Many terminal emulators and real terminal drivers use the CTRL-S key to
stop the data from arriving so that you can stop a fast scrolling display
to look at it (also allowed older terminals to slow down the computer so
that it did not get buffer overflows). You can start the output again by
pressing the CTRL-Q key.
When you press the CTRL-S key, the terminal driver will stop sending the
output data. As a result of this, it will look like Vim is hung. If you
press the CTRL-Q key, then everything will be back to normal.
You can turn of the terminal driver flow control using the ’stty’ command:
$ stty -ixon -xoff
or, you can change the keys used for the terminal flow control, using the
following commands:
$ stty start
http://www.thinkinsth.net/blog/354
- vim(五) Ctrl + S ,ctrl +Q
- vim时按了Ctrl+S的解决办法:Ctrl+Q
- 命令行或 vim下 的Ctrl + S ,ctrl +Q
- vim Ctrl-S造成窗口僵死,按Ctrl-Q恢复。
- vim下解决ctrl-s ctrl-q 假死问题
- vim 与 Ctrl+q
- 组合键ctrl+c ctrl+z ctrl+d ctrl+/ ctrl+s ctrl+q 的作用
- vim ctrl+s scrollbar
- vim ctrl+s
- vim ctrl+s就卡死
- vim ctrl+s 就死
- vim ctrl+s程序僵死
- vim Ctrl+S锁定屏幕
- vim ctrl+s 就死
- vim Ctrl+S锁定屏幕
- VIM设置Ctrl-s快捷键失效问题
- vim按下ctrl+s僵死
- vim 下 ctrl+s的尴尬
- android 效果,APP
- 输入三个整数,按由小到大的顺序输出。
- 四层板
- Vim如何去掉^M
- 在SQL SERVER 2005的表分区里,如何对已经存在的有数据的表进行分区
- vim(五) Ctrl + S ,ctrl +Q
- HDU1425-sort
- 关于ComboBox的运用
- (转)Android游戏开发之飞行射击类游戏原理实现(二十)
- 内存分配函数小总结
- svn服务器的配置和svn客户端的安装以及myeclipse中插件的安装
- NYOJ116 士兵杀敌(二)
- Iframe和jquery结合实现不刷新上传
- 集团企业信息化规划和实施研究