Bug#419171: vim: adds extra spaces to text pasted from the clipboard

Michael Gilbert michael.s.gilbert at gmail.com
Sat Apr 14 06:49:00 UTC 2007


Package: vim
Version: 1:7.0-219+1
Severity: normal

when text is pasted into vim from the X clipboard, extra spaces will 
show up due to the autoindenting feature.  for example, if the following
text is copied to the clipboard:

1
2
 3
 4
 5
6
7
8
 9

i get the following text when pasting into vim:

1
2
 3
  4
   5
   6
   7
   8
    9

i can use ":set noai" to prevent autoindenting and pasting works
correctly, but is there anyway that vim could automatically not do
autoindenting when text is pasted but do autoindenting normally?
thanks.

mike

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable'), (400, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages vim depends on:
ii  libc6                       2.3.6.ds1-13 GNU C Library: Shared libraries
ii  libgpmg1                    1.19.6-25    General Purpose Mouse - shared lib
ii  libncurses5                 5.5-5        Shared libraries for terminal hand
ii  vim-common                  1:7.0-219+1  Vi IMproved - Common files
ii  vim-runtime                 1:7.0-219+1  Vi IMproved - Runtime files

vim recommends no packages.

-- no debconf information




More information about the pkg-vim-maintainers mailing list