title: Vim on Ubuntu: Text rendering bug, repeating and disappearing weirdly
body: <p>I had vim installed on ubuntu 12.04 not long ago. Sometimes when I run my cursor (using keyboard, not mouse) over code, text disappears, as though there is a problem rendering the character. When I run the cursor back again, it usually reappears.</p>
  <p>This seems to happen quite randomly but is often enough to make it irritating.</p>
  <p>To make it clearer, here's an example:</p>
  <p>1.Original text:</p>
  <p>Hi! How are you today.</p>
  <p>2.Text after cursor runs over it</p>
  <p>H ! How re yo today.</p>
  <p>3.After running the cursor over the sentence again</p>
  <p>i! How ar  you tod y.</p>
  <ol start="4">
  <li>Finally, after running the cursor over the sentence a few times, it is back to normal</li>
  </ol>
  <p>.vimrc file:</p>
  <pre><code>set nocompatible               &quot; be iMproved
   syntax on        &quot;Syntax highlighting
   filetype off 
   set rtp+=~/.vim/bundle/vundle/
   call vundle#rc()
  
   colorscheme evening 
    
   &quot;font
   set nu
   set guifont=Monospace\ 12
   set foldmethod=indent
   set foldlevel=99
   set lines=50 columns=80
   set ignorecase &quot;searching is not case sensitive 
   set smartcase &quot;if a pattern contains uppercase, searching IS case sensitive 
   set autoindent
   set tabstop=4
   
   winpos 1068 24
   &quot; Type 'za' to open and close a fold
   &quot; let Vundle manage Vundle
   
   Bundle 'gmarik/vundle'
  
   &quot; original repos on github
   Bundle 'tpope/vim-fugitive'
   &quot; vim-scripts repos
   Bundle 'L9'
   Bundle 'FuzzyFinder'
   &quot; git repos on your local machine (ie. when working on your own plugin)
   
   &quot;Bundles I install
   Bundle 'https://github.com/scrooloose/nerdtree.git' 
   Bundle 'scrooloose/syntastic'
   Bundle 'dbakker/vim-lint'
   Bundle 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'} 
  
   &quot;snipmate
   Bundle &quot;MarcWeber/vim-addon-mw-utils&quot;
   Bundle &quot;tomtom/tlib_vim&quot;
   Bundle &quot;snipmate-snippets&quot;
  
  &quot;Install snipmate:
   Bundle &quot;garbas/vim-snipmate&quot;
  
   Bundle &quot;sudar/vim-arduino-snippets&quot;
  
   &quot;PYTHON
   filetype plugin indent on
   Bundle 'klen/python-mode'
   autocmd BufRead *.py nmap &lt;F5&gt; :!python %&lt;CR&gt;
   set laststatus=2
   &quot; :BundleList          - list configured bundles
   &quot; :BundleInstall(!)    - install(update) bundles
   &quot; :BundleSearch(!) foo - search(or refresh cache first) for foo
   &quot; :BundleClean(!)      - confirm(or auto-approve) removal of unused bundles
   &quot; see :h vundle for more details or wiki for FAQ
   &quot; NOTE: comments after Bundle command are not allowed..
   &quot; ARDUINO
   autocmd! BufNewFile,BufRead *.pde,*.ino  setlocal ft=arduino
  </code></pre>
  <p>Edit:</p>
  <p>I tried to take a screenshot of the problem, but realized that after taking a screenshot, gvim would sort of &quot;refresh&quot;, and missing fonts appear again. Alt-Tabbing helps too. But I have not found a permanent solution to this problem.</p>
  <p>Also, moving my cursor over the line of text with characters missing would sometimes cause other characters to go missing while old characters appear. Sometimes the cursor would also leave behind static images of other cursors.</p>
  <p>I've also got vim installed on windows, shall try it there to see if the same problem appears.</p>
  <p>Screenshot, notice the empty rectangle in the bottom left:</p>
  <p><img src="https://i.stack.imgur.com/oifmU.jpg" alt="Disappearing text on screen with GVim on Ubuntu" /></p>
  <p>Update: So I've reinstalled ubuntu (this time to 14.04), gvim and vim. There are still some annoying rendering issues, although it manifests differently (see screenshot 2). Line numbers and percentages go haywire and scroll along with the page when I scroll down using &quot;j&quot;. Only happens for vim so far. Gvim is working okay.
  <img src="https://i.stack.imgur.com/Z6kl4.png" alt="enter image description here" /></p>