this post was submitted on 02 Sep 2024
794 points (93.4% liked)

Linux

48684 readers
400 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 8 points 3 months ago (3 children)

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?

[–] [email protected] 8 points 3 months ago* (last edited 3 months ago) (1 children)

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.

[–] [email protected] 1 points 3 months ago (1 children)

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.

[–] [email protected] 1 points 3 months ago

What you observes could be OS depended,. Vim has its own copy paste buffers (y,p etc) and the OS has its own. Traditionally highligh to copy and middle mouse button to paste on Unix. Windows has 2 methods, ctrl-c,v but those are also bindings in vim so only the older less known crtl-insert,shirt-insert works.

Copy paste is definitely built in, there is no need for extra plugins.

[–] [email protected] 3 points 3 months ago (1 children)

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

[–] [email protected] 1 points 3 months ago* (last edited 3 months ago)

So I need to dive into the manual to do something as basic and universal as "copy and paste"? Why not make it Ctrl+shift+c or have it shown in the info text when pressing this almost universally accepted keypairs? Or at least make it somewhat similar to this. I find it bonkers why some programs decide to just have radically different shortcuts or defaults, the complete opposite of what feels intuitive. Same with the design of some doors that need actual SIGNS on them to tell you which direction they open. Just bad design choice.

Edit: just remembered. Same story with tmux. Want to copy something? Surprise, it's not anything you expect it to be. Some ctrl+b + [ or some shit