For a few weeks, I have the strangest issue, on a single computer. On this computer, when I open a file with Vim, the yank register have a low chance of being pasted on the current position of the cursor, with the number "2" after it.
#include <algorithm> #include <iterator> #include <set> #include <cmath>
my yank register
myFile.cxx after i open it with
vim myFile.cxx in xterm.
irrelevant cod2 #include <algorithm> #include <iterator> #include <set> #include <cmath>
I suspected a bug in my .vimrc configuration so i minimized it, but the bug is still present. Here is my current .vimrc, without any .vim folder present.
:syntax on "Turn on syntax highlighting :set laststatus=2 "Always show status line :set tabstop=2 "Number of spaces a TAB in the text stands for :set shiftwidth=2 "Number of spaces used for each step of (auto)indent :set hlsearch "Have vim highlight the target of a search :set incsearch "Do incremental searching :set ruler "Show the cursor position all the time :set number "Show line numbers "Converting tabs to spaces :set expandtab
The bug appears only after some time of usage after booting and using vim. Once it starts appearing, the chance of seeing it are quite low, but not negligeable, however I have a hard time reproducing it voluntarily.