Menu

#12 vim-latexsuite erases primary paste buffer

open
nobody
None
5
2005-01-16
2005-01-16
No

This is a forward of Debian bug #242974. Full report is
available at http://bugs.debian.org/242974.

One of the nice things about vim is the carrying over
of the past buffer via viminfo. However, when
vim-latexsuite starts (as vim is started on a .tex
file), this primary paste buffer is used and thus
overwritten. latexsuite should either save and restore
this buffer, or use one of the labeled paste buffers
instead.

Original submitter of this bug also provided some
additional
data.

Apparently now though it uses the 'a' buffer
to restore the primary paste buffer. To reproduce:

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

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

Discussion

  • Srinath Avadhanula

    Logged In: YES
    user_id=460214

    I really do not understand clearly what the original bug
    submitter meant. Even if I replace test.tex with test.foo
    above (so that latex-suite is never invoked), the exact same
    thing happens. So I am not sure what latex-suite is doing here.

     
  • Martin F. Krafft

    Logged In: YES
    user_id=36552
    Originator: NO

    Hi,

    Please open a non-tex file, yank a line, close it, open it again, and try to paste the line. Does it work?
    If not, then you have to configure your vim to use viminfo properly.

    If it does work, then please try the same with a .tex file with latex-suite enabled.

     

Log in to post a comment.