使用CommandT时,Ctrl + S不能在VIM中用作水平分割 [英] Ctrl + S is not working as a horizontal split in VIM when using CommandT
问题描述
最近我一直在调整~/.vim
,似乎我弄坏了一些东西.
I've been tweaking my ~/.vim
quite a lot lately, and it seems that I broke something.
我正在使用CommandT插件,当打开搜索时,它允许以下操作:
I'm using the CommandT plugin, which when the search is open allows for the following:
- 输入-在当前缓冲区中打开文件
- Ctrl + S-在水平拆分窗口中打开文件
- Ctrl + V-在垂直拆分窗口中打开文件
问题在于,Ctrl + S突然停止在终端VIM中工作,只有Ctrl + V在工作.起初我以为我在常规配置中遇到了问题,但是后来我在MacVim中尝试了一下,然后Ctrl + S可以正常工作.
The problem is, that Ctrl + S suddenly stopped working in terminal VIM, only Ctrl + V is working. At first I thought I broke something in my general config, but then I tried it in MacVim, and Ctrl + S works just fine.
我不知道已经设置了仅针对终端VIM的任何内容.
I'm not aware of having set anything specific only to the terminal VIM.
有什么办法可以告诉我,钥匙是否正在反弹到其他东西上?这是怎么回事?
顺便说一句,我的~/.vim
是Janus的一个分支,大部分内容已删除和更改,我主要将其保留在Rakefile
上以用于安装插件. 这是存储库
btw, my ~/.vim
is a fork of Janus with most stuff removed and changed, I'm keeping it mostly for the Rakefile
for installing plugins. here's the repo
推荐答案
我在这里找到了解决此问题的方法: https://apple.stackexchange.com/a/34503
I've found solution for this problem here: https://apple.stackexchange.com/a/34503
只需将您的.bashrc/.zshrc输入以下代码行即可:
Just put in your .bashrc / .zshrc this line of code:
stty -ixon -ixoff
这篇关于使用CommandT时,Ctrl + S不能在VIM中用作水平分割的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!