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"
Maybe you should have a look at the 'paste' option. try : :set paste Benoit
Looks like Benoit beat me too it :)
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" ;)
Well, setting it when you're not pasting something breaks auto indenting...