Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61653 - vim copy & paste behaviour in rxvt/Xorg
Summary: vim copy & paste behaviour in rxvt/Xorg
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Vim Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-25 09:33 UTC by Sebastian Roth
Modified: 2004-08-26 07:41 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Roth 2004-08-25 09:33:43 UTC
Hi,

strange problem today. I'm trying to copy [select with left mouse button, paste with middleclick] some text from an existing vim session into an another vim session (both started inside rxvt). The text doesn't get formatted (there are spaces added at the beginning of each line) like the source, as shown in the following example:

Source text:
"
foo foo
foo foo
bar bar
"
<select text inside vim>
The text inside the another vim gets formatted like this after pasting:
"
foo foo
  foo foo
    bar bar
"
Most interesting, this problem only appeares between vim sessions. Pasting text from programs like kate or mozilla to vim works perfectly.

I'm using vim-6.3, emrege info output appended

Reproducible: Always
Steps to Reproduce:
1. launch 2 vim sessions in two separate windows
2. copy & paste (leftmouse-select/middlebuttonclick) some text between them




Portage 2.0.50-r9 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r1, 2.6.8.1)
=================================================================
System uname: 2.6.8.1 i686 Intel(R) Pentium(R) 4 CPU 1.80GHz
Gentoo Base System version 1.4.16
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [disabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays
-ffast-math -fforce-addr -falign-functions=4 -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays
-ffast-math -fforce-addr -falign-functions=4 -mfpmath=sse"
DISTDIR="/usr/distfiles"
FEATURES="autoaddcvs distcc fixpackages"
GENTOO_MIRRORS="ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/data1/root/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3ds X X509 Xaw3d aac aalib acl acpi acpi4linux activefilter adabas adns
alsa antlr apache2 arts audiofile avantgo avi berkdb bluetooth bonobo bsh bzlib
cap cddb cdf cdparanoia cdr cdrom cgi chasen chroot composite crypt cscope cups
curl dga dillo divx4linux dnd doc dv dvd dvdread editor edl emacs encode erandom
escreen esd ethereal etwin evo fam ffmpeg fftw firebird flac flash flatfile
flood fltk fluidsynth fmod foomaticdb freetds freewnn frontbase ftp fullrpc gb
gcl gd gdbm gdpm ggi gif gimp gimpprint glade glut gmp gmtfull gmthigh gnome
gnomedb gnuplot gphoto2 gpm gps gstreamer gtk gtk2 gtkhtml guile hbci hdf hdf5
idea idl image imagemagick imap imlib imlib2 innodb ipv6 jabber jack java
javamail javascript jikes jpeg junit justify jython kadu-modules kadu-voice
kakasi kde kerberos ladcca lcms ldap leim libcaca libg++ libgda libsamplerate
libwww live lm_sensors lufsusermount lzo lzw lzw-tiff mad matroska mbox mcal
md5sum migemo mikmod mldonkeypango mmx mng monkey mono motif mozilla
moznocompose moznoirc moznomail mozp3p mozsvg mpeg mpeg4 mpi mplayer msdav msn
mssql mule mysql mythtv nas ncurses network nls nntp nocardbus nocstrike nodod
nptl nvidia odbc offensive ofx oggvorbis opengl opie oscar ospfapi oss pam pcre
pda pdflib perl php physfs pic plotutils png pnp portaudio postgres psyco python
qt quicktime radius readline recode regexp rplay rtc ruby samba sasl scanner sdk
sdl slang slp socks5 sox speex spell sqlite sse ssl stencil-buffer stroke svg
svga t1lib tcltk tcpd tetex tga theora threads tiff transcode truetype ucs4
unicode usb v4l v4l2 vhosts vim-with-x wmf wxwin wxwindows x86 xalan xchattext
xemacs xerces xface xfs xine xinerama xinetd xml xml2 xmlrpc xmms xosd xprint
xrandr xsl xv xvid yahoo yaz yv12 zeo zlib zvbi"
Comment 1 Benoit Boissinot 2004-08-25 11:39:55 UTC
Maybe you should have a look at the 'paste' option.

try :
:set paste

Benoit
Comment 2 Ciaran McCreesh 2004-08-25 17:38:13 UTC
Looks like Benoit beat me too it :)
Comment 3 Sebastian Roth 2004-08-26 00:55:56 UTC
Ok, this works. Maybe we could put this command into an system wide /etc/vimrc as it really starts some weird behaviour when not set.

Thanks all& sorry for filing an bug report about an "feature" ;)
Comment 4 Ciaran McCreesh 2004-08-26 07:41:05 UTC
Well, setting it when you're not pasting something breaks auto indenting...