Bug 229209 - Strange behaviour when pasting texts into vi/vim
Strange behaviour when pasting texts into vi/vim
Product: Fedora
Classification: Fedora
Component: vim (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Karsten Hopp
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2007-02-19 11:12 EST by Robert Scheck
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-02-19 11:40:12 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Robert Scheck 2007-02-19 11:12:53 EST
Description of problem:
Since a view patch levels in vim there's a strange behaviour when pasting
texts into vi/vim: Once a line contains a comment marker, any following lines 
are commented - even if they've their own comment marker in the beginning. 

Simple example would be mark some parts with comments of /etc/vimrc and paste 
into after. Or go to a line with a comment mark, switch into insert mode and 
press enter key, the comment mark will be used as prefix for the next line.

Version-Release number of selected component (if applicable):

How reproducible:
Everytime, see above.

Actual results:
Strange behaviour when pasting texts into vi/vim

Expected results:
Normal behaviour like in the past? :)
Comment 1 Karsten Hopp 2007-02-19 11:40:12 EST
That's what :set paste is for. This avoids any unwanted identing or autocomments
when you copy and paste stuff.
Comment 2 Robert Scheck 2007-02-19 11:53:22 EST
But why are you changing the default?
Comment 3 Karsten Hopp 2007-02-20 04:50:13 EST
due to en error on my side filetype plugins had been disabled, that's what has
been fixed in the latest releases. Please disable that in /etc/vimrc if you
don't like it.

Note You need to log in before you can comment on or make changes to this bug.