为什么VIM正在发生变化的第一个字母与G打开文件后, [英] Why vim is changing first letter to g after opening a file

查看:736
本文介绍了为什么VIM正在发生变化的第一个字母与G打开文件后,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我打开一个文件,如: VIM的.bashrc ,VIM打开文件,并更改的第一个字母为先按g 。我看到的是以下内容:

要在法律允许的范围内

 克,作者(S)有专门的所有
#版权及相关权利,以该软件为
...

更改先按g ,但加载文件后,它再次发生变化。多个文件发生。

最后我所做的事情是:installig GCC 制作

为什么会出现这种情况?

编辑:
我的.vimrc文件:

 设置nocompatible
设置退格=缩进,EOL启动
集数
设置制表位= 4
语法上


解决方案

所以appers是一个VIM 问题。到目前为止,我只收集两个解决方案:


  • 重新安装到旧版本的Vim。我重新安装到7.4.752-1和错误也没有了。

  • 更改cygwin的终端任何人,但为xterm *(标题栏上单击鼠标右键 - >选项 - >终端 - >型)

When I open a file, eg vim .bashrc, vim opens the file and change the first letter to g. What I see is the following:

g To the extent possible under law, the author(s) have dedicated all
# copyright and related and neighboring rights to this software to the
...

I change g back to #, but after loading the file its again changed. Happens with multiple files.

Last things I have done was: installig gcc and make.

Why is this happening?

EDIT: My .vimrc file:

set nocompatible
set backspace=indent,eol,start
set number
set tabstop=4
syntax on

解决方案

So it appers to be a vim issue. So far I gathered only two solutions:

  • Reinstall to older version of vim. i reinstalled to 7.4.752-1 and bug is gone.
  • Change cygwin terminal to anyone but "xterm*" (right-click on title bar -> Options... -> Terminal -> Type)

这篇关于为什么VIM正在发生变化的第一个字母与G打开文件后,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆