gpt4 book ai didi

ubuntu - Ubuntu : Text rendering bug, 上的 Vim 奇怪地重复和消失

转载 作者:太空宇宙 更新时间:2023-11-03 16:43:42 25 4
gpt4 key购买 nike

我不久前在ubuntu 12.04上安装了vim。有时,当我在代码上运行光标(使用键盘,而不是鼠标)时,文本消失了,就好像渲染字符时出现问题一样。当我再次运行光标时,它通常会重新出现。

这似乎是随机发生的,但通常足以让人恼火。

为了更清楚,这里有一个例子:

1.原文:

嗨!你今天好吗。

2.光标经过后的文本

哼!今天你好吗。

3.再次将光标移到句子上

我!你今天过得怎么样。

  1. 最后,光标在句子上跑了几下,就恢复正常了

.vimrc 文件:

set nocompatible               " be iMproved
syntax on "Syntax highlighting
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()

colorscheme evening

"font
set nu
set guifont=Monospace\ 12
set foldmethod=indent
set foldlevel=99
set lines=50 columns=80
set ignorecase "searching is not case sensitive
set smartcase "if a pattern contains uppercase, searching IS case sensitive
set autoindent
set tabstop=4

winpos 1068 24
" Type 'za' to open and close a fold
" let Vundle manage Vundle

Bundle 'gmarik/vundle'

" original repos on github
Bundle 'tpope/vim-fugitive'
" vim-scripts repos
Bundle 'L9'
Bundle 'FuzzyFinder'
" git repos on your local machine (ie. when working on your own plugin)

"Bundles I install
Bundle 'https://github.com/scrooloose/nerdtree.git'
Bundle 'scrooloose/syntastic'
Bundle 'dbakker/vim-lint'
Bundle 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'}

"snipmate
Bundle "MarcWeber/vim-addon-mw-utils"
Bundle "tomtom/tlib_vim"
Bundle "snipmate-snippets"

"Install snipmate:
Bundle "garbas/vim-snipmate"

Bundle "sudar/vim-arduino-snippets"

"PYTHON
filetype plugin indent on
Bundle 'klen/python-mode'
autocmd BufRead *.py nmap <F5> :!python %<CR>
set laststatus=2
" :BundleList - list configured bundles
" :BundleInstall(!) - install(update) bundles
" :BundleSearch(!) foo - search(or refresh cache first) for foo
" :BundleClean(!) - confirm(or auto-approve) removal of unused bundles
" see :h vundle for more details or wiki for FAQ
" NOTE: comments after Bundle command are not allowed..
" ARDUINO
autocmd! BufNewFile,BufRead *.pde,*.ino setlocal ft=arduino

编辑:

我试图对问题进行截图,但意识到在截图后,gvim 会有点“刷新”,并且再次出现丢失的字体。 Alt-Tabbing 也有帮助。但是我还没有找到解决这个问题的永久方法。

此外,将光标移到缺少字符的文本行上有时会导致其他字符丢失,而旧字符出现。有时光标也会留下其他光标的静态图像。

我在windows上也安装了vim,试试看会不会出现同样的问题。

截图,注意左下方的空白矩形:

Disappearing text on screen with GVim on Ubuntu

更新:所以我重新安装了 ubuntu(这次是 14.04)、gvim 和 vim。仍然存在一些烦人的渲染问题,尽管它的表现有所不同(参见屏幕截图 2)。当我使用“j”向下滚动时,行号和百分比会变得困惑并与页面一起滚动。到目前为止只发生在 vim 上。 Gvim 工作正常。 enter image description here

最佳答案

所以我发现了问题所在。在我从我的 .vimrc 中删除一行后,奇怪的视觉渲染错误就消失了。

没想到这条看起来无伤大雅的线是原因:

set lines=50 columns=100

但不确定为什么会这样。

关于ubuntu - Ubuntu : Text rendering bug, 上的 Vim 奇怪地重复和消失,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20593268/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com