vim in Cygwin在打开文件时用“g”替换第一个字符 [英] vim in Cygwin replaces first character with 'g' on opening a file
问题描述
我在Cygwin终端使用vim。它工作正常。最近,我在Cygwin中添加了一个包,导致了vim和一些其他组件的更新。现在当我打开vim中的任何文件,文件中的第一个字符被替换为字符'g'。
我试图删除.vimrc和.vim文件夹中的所有文件在我的主文件夹。但是问题仍然存在。
为了理解这个问题,我使用'vim -E'打开了一个文件。打开时,我在窗口底部看到以下内容:
进入Ex模式。输入visual进入正常模式。
:] 11; rgb:0000/0000/0000 \
键序列rgb在vim中将第一个字符替换为'g'。
这个问题似乎与xterm配置有关。
如何解决这个问题?
帮助。更新:
我在〜/中添加了以下行。 vimrc:
colorscheme默认
这解决了这个问题。
我不知道是什么问题。但我尝试重新安装 vim 和 vim-common 的 7.4.752-1 版本,此问题消失了。希望这有助于你!
在20150806更新:升级到7.4.808-1将解决这个问题!
I use vim in Cygwin terminal. It was working fine. Recently, I added a package in Cygwin which caused update of vim and some other components. Now when I open any file in vim, the first character in the file gets replaced with character 'g'.
I tried removing .vimrc and all files in .vim folder in my home folder. But the problem persists.
To understand the problem, I opened a file using 'vim -E'. On opening, I see the following at the bottom of the window:
Entering Ex mode. Type "visual" to go to Normal mode.
:]11;rgb:0000/0000/0000\
The key sequence rgb in vim would replace the first character with 'g'.
This problem seems to be related to xterm configuration. But I cannot figure it out.
How can I resolve this problem?
Thank you in advance for your help.
Update:
I added the following line in ~/.vimrc :
colorscheme default
This solved the problem.
I'm not sure what the problem is. But I tried to reinstall 7.4.752-1 version of vim and vim-common, this problem disappeared. Hope this help you!
Updated on 20150806: upgrade to 7.4.808-1 will fix the problem!
这篇关于vim in Cygwin在打开文件时用“g”替换第一个字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!