18
submitted 1 week ago* (last edited 1 week ago) by jeena@piefed.jeena.net to c/programming@programming.dev

What I often have to do is to copy something from my editor to the browser and vice versa. But this seems not so easy in some editors. I feel I have to add that I'm on wayland under hyprland.

In some Editors it's super easy like GNOME Text Editor or nano, you mark some code in the text editor with the mouse and then in the browser you press the middle click on the mouse where you want to paste it, done. You could do it with ctrl-c and ctrl-v but with the mouse only it's just so much faster. And it works both ways browser <--> editor

But in VSCodium I can do that from editor -> browser, but I can't do it from browser -> editor, I have no idea why.

In neovim it's the opposite I can do it from browser -> editor, but I can't do it from editor -> browser.

Any ideas what is going on?

you are viewing a single comment's thread
view the rest of the comments
[-] bedheadkitten@lemmy.world 4 points 1 week ago* (last edited 1 week ago)

Have you installed a clipboard, like wl-clipboard? you also have to set it up in neovim init.lau fila also with "clipboard=unamedplus" if you want it to be on your system clipboard similar to what you describe. The normal neovim setup is that the nvim clipboard is separate from the system one, but you can copy into it from neovim by using marks like "+yy etc. It's nice to have two separate if you can get used to it.

Edit: here is a guide. Disclaimer, i dont know if its good I only skimmed it https://hatchjs.com/neovim-copy-to-system-clipboard/

[-] FizzyOrange@programming.dev -4 points 1 week ago

Yeah of Linux on the Desktop!

First you'll need this guide to make copy & paste work... 🤦🏻‍♂️

[-] bedheadkitten@lemmy.world 6 points 1 week ago

Yeah well last time I checked noone is forcing anyone on linux to use neovim as a text editor. You can just use nano or Kate or sublime or vscode or.... dosent matter. Vim != linux, in case your usure about what the topic is here.

this post was submitted on 18 Jul 2025
18 points (100.0% liked)

Programming

21807 readers
530 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS