Gvim 7.2 paste into OpenOffice 3.2.0 fails

Bug #617841 reported by Corasol
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
vim (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: vim

Copying something from Gvim, either using the X clipboard or the menu commands, and then pasting it into OpenOffice, fails with the error "Requested clipboard format is not available". This behavior also happens with other programs such as Lotus Notes.

As a workaround, using Paste Special and selecting plain text format (not HTML) will successfully paste the text. Alternatively, setting the following option in vim/vimrc prior to copying will also work:

:set cb=autoselect,html,exclude:cons\|linux

This bug was introduced in vim 7.2.201 and corrected in 7.2.442 (see http://ftp.vim.org/pub/vim/patches/7.2/README)

Given the LTS status of Ubuntu 10.04 this fix should be trickled down to it since it affects basic functionality of Gvim.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: vim-common 2:7.2.330-1ubuntu3
ProcVersionSignature: Ubuntu 2.6.32-24.39-generic 2.6.32.15+drm33.5
Uname: Linux 2.6.32-24-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Sat Aug 14 14:53:03 2010
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
ProcEnviron:
 LANGUAGE=en_GB:en
 PATH=(custom, user)
 LANG=en_GB.utf8
 SHELL=/bin/zsh
SourcePackage: vim

Revision history for this message
Corasol (corasol) wrote :
Revision history for this message
Will Gray (graywh) wrote :

Don't get your hopes up.

Revision history for this message
SabreWolfy (sabrewolfy) wrote :

Confirmed in vim 7.2 and OpenOffice.org 3.2.0 Writer under Lucid (GNOME).

I could, however, copy/cut from command-line "vim" and paste into Writer.

Revision history for this message
SabreWolfy (sabrewolfy) wrote :

Correction: I meant confirmed in *gvim* 7.2 of course.

Anzenketh (anzenketh)
Changed in vim (Ubuntu):
status: New → Confirmed
summary: - Gvim paste into OpenOffice fails
+ Gvim 7.2 paste into OpenOffice 3.2.0 fails
Revision history for this message
Martin Bartlett (martin-j-bartlett) wrote :

Still there in 10.10

Revision history for this message
Alan De Smet (chaos-highprogrammer) wrote :

Confirmed in Ubuntu 10.04 with recent updates, OpenOffice 3.2.0 (OOO320m12 (Build:9483)) and Gvim 7.2 (2008 Aug 9, compiled Apr 16 2010 12:40:58).

When pasting into OpenOffice, in addition to getting the "Requested clipboard format is not available" error, it appears to disable/break the "Paste Special" functionality. Shift+Ctrl+V and Edit > Paste Special are simply ignored. Prior to attempting the paste from gvim, Paste Special works fine. I believe that OpenOffice becomes unstable at this point, but cannot be certain. The workaround adding "html" to Vim's clipboard (cb) setting does work.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.