this post was submitted on 17 Mar 2024
923 points (97.4% liked)

Programmer Humor

19623 readers
2 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
923
Songs about Vim (programming.dev)
submitted 8 months ago* (last edited 8 months ago) by chraebsli@programming.dev to c/programmer_humor@programming.dev
 

.

you are viewing a single comment's thread
view the rest of the comments
[–] swab148@startrek.website 20 points 8 months ago (7 children)

Just because this is a vim meme, does anyone know how to copy text from one instance of vim to the other?

[–] embed_me@programming.dev 12 points 8 months ago* (last edited 8 months ago) (1 children)

You can yank text to system clipboard buffer ie +. Then paste (put) from the clipboard to any other vim process.

Keep in mind you should have clipboard support in your vim. If you're on ubuntu, install vim-gtk and you should be good

[–] swab148@startrek.website 1 points 8 months ago

I'm on Debian, but my VM is an Ubuntu server, so that should work!

[–] docAvid@midwest.social 10 points 8 months ago (1 children)

Just use a single instance of Emacs to edit everything everywhere all at once. You can even use vim keybindings if you have no taste.

[–] swab148@startrek.website 1 points 8 months ago (1 children)

Emacs is more for devs though, yeah? I'm just a lowly sysadmin in training.

[–] docAvid@midwest.social 1 points 8 months ago

I think Vim is more popular with sysadmins because, historically, you could count on Vi or Vim being available on just about any server you had to do some work on, while Emacs might not be. That's still probably somewhat true, although in the world of clouds, containers, and source-controlled, reproducible configuration, it's probably less common to edit files in place on a server.

However, with Emacs tramp, you can edit files just about anywhere you can access, by any means, even if there is no editor installed there at all, using your local Emacs, with all your accustomed configuration. Like popping open a file inside a container running on a remote server by ssh, something I've done a lot of lately, debugging services running on AWS ECS.

[–] Mohaim@beehaw.org 8 points 8 months ago* (last edited 8 months ago)

Install xclip then press "+y (double-quote plus-sign y) to yank to system clipboard then "+p to put from sys clipboard

[–] MashedTech@lemmy.world 7 points 8 months ago

Fuck it, use neovim and copy to the system clipboard.

[–] theFibonacciEffect@feddit.de 3 points 8 months ago

I think you can just use y and p

[–] Traister101 2 points 8 months ago (1 children)

Instance of Vim? Swap buffers fool

[–] swab148@startrek.website 2 points 8 months ago

Would this work if one of those instances was in a VM?

[–] Semi_Hemi_Demigod@lemmy.world 2 points 8 months ago

Copy the text to a local clipboard, then paste it into your terminal in the other instance

IDK I only use vim over ssh