• dysprosium@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    0
    ·
    17 days ago

    For vim I had to config or install something just to be able to COPY something to use outside vim, how backwards is that? Isn’t this the most standard feature one can expect to work as default?

    • flying_gel@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      17 days ago

      You mean you couldn’t copy some text from vim and paste it into another application? if yes, what did you have to install/configure for that? I’ve never had any issues copy paste from/to vim, console/GUI windows/Unix.

      • dysprosium@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        0
        ·
        15 days ago

        Sadly I don’t remember. Sometimes it comes preinstalled, sometimes not, depending on OS or something. (Maybe Manjaro gnome). I could copy and paste inside of vim, but not to/from outside vim.

    • Chewt@beehaw.org
      link
      fedilink
      arrow-up
      0
      ·
      17 days ago

      it actually does work by default, you just probably missed how to do it in the help pages in vim. For those curious, the system clipboard is its own named register in vim (:help registers to learn more) and can be accessed with either “* or “+ depending on your how your system is configured.

      To copy a line: ”*yy or ”+yy

      To paste a line: ”*p or ”+p