vim should DTRT by default or a sane vi should be supported too

Bug #12000 reported by James Troup
4
Affects Status Importance Assigned to Milestone
vim (Ubuntu)
Fix Released
Medium
Thom May

Bug Description

vim breaks pasting (yes, I know about ':set paste', but requiring that is not
acceptable) by staggering the text if there is leading whitespace in the paste.
Apparently this brain-damage comes from Debian and not upstream. Can we please
either a) fix this, or b) promote nvi to supported. [That was the deal that was
agreed to in Brazil ... ]

Revision history for this message
Matt Zimmerman (mdz) wrote :

I've been using this patch for some time with great success:

--- /etc/vim/vimrc~ 2004-09-24 13:36:34.000000000 -0700
+++ /etc/vim/vimrc 2004-10-12 15:33:42.000000000 -0700
@@ -7,7 +7,7 @@
 set backspace=indent,eol,start " more powerful backspacing

 " Now we set some defaults for the editor
-set autoindent " always set autoindenting on
+" set autoindent " always set autoindenting on
 " set linebreak " Don't wrap words by default
 set textwidth=0 " Don't wrap lines by default
 set nobackup " Don't keep a backup file

Revision history for this message
Thom May (thombot) wrote :

 vim (1:6.3-046+1ubuntu3) hoary; urgency=low
 .
   * Don't autoindent by default (Ubuntu: #5602)

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.