Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

out of nowhere my copying and pasting doesnt work

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
picarica
Guru
Guru
Posts: 366
Joined: Sat Aug 11, 2018 12:41 am

out of nowhere my copying and pasting doesnt work

  • Quote

Post by picarica » Tue Aug 06, 2019 12:50 am

so ill post a little video to show what is wrong thi happend suddenly and i cannot fix it, i think it happend after i installed xclip.

so what isnt working
  • select to copy
    pasting using middle mouse button
    something i forgot
here is video for download

wathch online at gyfcat
Top
calavicci
n00b
n00b
Posts: 50
Joined: Tue Mar 28, 2006 11:35 pm

  • Quote

Post by calavicci » Tue Aug 06, 2019 5:08 pm

There are two different problems you're having.

First, the missing "I" is because you're not accounting for vi. Vi doesn't know about any clipboard mechanism - it's designed for the console. When you try to paste, you're just sending vi all the keystrokes of the characters in the copied content. The "I" tells vi to enter insert mode, not to put an "I" in the buffer. Since it's therefore then in insert mode, all the rest appears as expected. You might try gvim instead if you really want a vi that behaves in (somewhat) X-typical ways; if that still doesn't make sense, try gedit.

Second, the spacing is wrong because vi doesn't know that you aren't just typing into it. It's got an automatic spacing plugin. Try ":set noautoindent" and ":set nosmartindent" before pasting.

Additionally, note that "highlight to select/middle mouse to paste" is an X mechanism, while "Ctrl+C to select/Ctrl+V to paste" is a separate mechanism provided by your toolkit or some other part of your DE.
Top
Hu
Administrator
Administrator
Posts: 24398
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Wed Aug 07, 2019 1:54 am

calavicci wrote:First, the missing "I" is because you're not accounting for vi. Vi doesn't know about any clipboard mechanism - it's designed for the console.
That's only partially correct. Modern Vim knows how to interact with the X server, even in console mode. However, the user must take care to tell Vim to load the contents of the X clipboard, not to tell the terminal to use the clipboard. Primary is available as the register *; clipboard is available as the register +. With the right compile options and configuration, Vim running in a terminal can still be an X client and access the clipboard directly. This also enables you to copy text from Vim into the X clipboard, even when the presentation in your terminal is suboptimal (for example, if you had wrap off, or showbreak on).
calavicci wrote:Second, the spacing is wrong because vi doesn't know that you aren't just typing into it. It's got an automatic spacing plugin. Try ":set noautoindent" and ":set nosmartindent" before pasting.
Why not use :set paste, which is specifically designed and documented for this purpose? It resets more options than you describe, and it knows how to revert them when you :set nopaste later.
Top
Post Reply

3 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic