|Summary:||Strange behaviour when pasting texts into vi/vim|
|Product:||[Fedora] Fedora||Reporter:||Robert Scheck <redhat-bugzilla>|
|Component:||vim||Assignee:||Karsten Hopp <karsten>|
|Status:||CLOSED NOTABUG||QA Contact:||David Lawrence <dkl>|
|Fixed In Version:||Doc Type:||Bug Fix|
|Doc Text:||Story Points:||---|
|Last Closed:||2007-02-19 16:40:12 UTC||Type:||---|
|oVirt Team:||---||RHEL 7.3 requirements from Atomic Host:|
|Cloudforms Team:||---||Target Upstream Version:|
Description Robert Scheck 2007-02-19 16:12:53 UTC
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): vim-7.0.192-1 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 16:40:12 UTC
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 16:53:22 UTC
But why are you changing the default?
Comment 3 Karsten Hopp 2007-02-20 09:50:13 UTC
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.