Bug#242974: vim-latexsuite: overwrites unnamed register when switching buffers

Nikolaus Schulz microschulz at web.de
Fri Dec 1 03:21:19 UTC 2006

Followup-For: Bug #242974
Package: vim-latexsuite
Version: 0.20041219-1

This bug still exists and is very annoying. :-(
Not only does vim lose the unnamed register's content when it is
restarted, but it does so every time one switches between TeX files
(e.g. with :n). 

On Thu, Nov 11, 2004 at 07:52:33PM +0100, martin f krafft wrote:
> The bug still exists. Apparently now though it uses the 'a' buffer
> to restore the primary paste buffer. 

Same here. 

> To reproduce:
> echo Hello world > test.tex
> echo Second line >> test.tex
> vim test
>   yyj"ayy:q
> vim test
>   Gp"ap

I think the procedure above is not suitable to trigger the bug, but
works just like expected -- the second yank command sets the registers
"" and "a.  

> This should output "Second line" twice when in fact it should
> duplicate the contents of the file in lines three and four.

Nope.  The following minimal file content is needed to trigger the bug: 

----[ a.tex ]----

This corrupts the unnamed ("") register when switching from some *.tex
file to a.tex: 

penelope[demo]$ ls
penelope[demo]$ echo -e "first\nsecond" > b.tex
penelope[demo]$ vim b.tex a.tex

This should put 'second' on the first line of a.tex, but it puts
'first'.  Very annoying.  The minimal a.tex is also quite weird. 


-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.4.27-deb.150606
Locale: LANG=de_DE at euro, LC_CTYPE=de_DE at euro (charmap=ISO-8859-15)

Versions of packages vim-latexsuite depends on:
ii  vim                    1:6.3-071+1sarge1 Vi IMproved - enhanced vi editor

-- no debconf information

More information about the pkg-vim-maintainers mailing list