18
submitted 3 weeks ago* (last edited 3 weeks ago) by [email protected] to c/[email protected]

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
[-] [email protected] 1 points 3 weeks ago

But if it's the terminal (kitty) why does it work nicely in nano but not neovim?

[-] [email protected] 6 points 3 weeks ago

https://vim.fandom.com/wiki/Copy,_cut_and_paste

i assume you are discovering (n)vims registers here. vim does not copy to your clipboard nor from it, unless you specify a special register for the operation.

it's one of those cases where vim feels off, until you find an awesome way to utilize it, then it's feeling like the greatest editor ever again.

[-] [email protected] 1 points 3 weeks ago

Ctrl+c works in terminal and nano but not neovim?

[-] [email protected] 1 points 3 weeks ago

Ctrl-c works everywhere I guess, but normally I don't use it, I use marking the text and pasting it with the middle click (scroll wheel) on the mouse.

[-] [email protected] 1 points 3 weeks ago

On osx I use alt (option I believe) for copying from the terminal, and that carries over with nvim. Admittedly I tend to use pbcopy for larger amounts of text

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

Programming

22034 readers
403 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 [email protected]



founded 2 years ago
MODERATORS