.

you are viewing a single comment's thread
view the rest of the comments
[–] 20 points 2 years 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?

  • source
  • hideshow 14 child comments
  • [–] 12 points 2 years ago* (last edited 2 years ago) (1 child)

    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

  • source
  • parent
  • hideshow 2 child comments
  • [–] 10 points 2 years ago (1 child)

    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.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 2 years ago (1 child)

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

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 2 years 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.

  • source
  • parent