Vim显示垃圾字符 [英] Vim shows garbage characters

查看:124
本文介绍了Vim显示垃圾字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用以下其中一个插件启动vim时:

When I start vim with one of these plugins:

  • TagBar
  • 会话

打开vim时有时会在缓冲区中看到垃圾字符.

I see sometimes garbage characters in the buffer when I open vim.

以下是这些字符:

;2R^[[>1;2802;0c

通过卸载这两个插件,我不再看到这些垃圾字符.

By uninstalling these two plugins, I don't see these garbage characters anymore.

如果我键入dd,它甚至不会删除这些字符. Vim说缓冲区是空的.

If I type dd, it does not even delete these characters. Vim says the buffer is empty.

在我的.vimrc末尾放置此命令是解决此问题的方法:

Putting this command at the end of my .vimrc is a workaround for this problem:

autocmd VimEnter * redraw!

这样,这些字符将立即删除.

With this, these characters are deleted immediately.

如何解决此问题?

推荐答案

我切换到neovim,我再也没有见过这个问题.

I switched to neovim and I've never seen this issue anymore.

这篇关于Vim显示垃圾字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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