6 points

Give CopyQ a try. Open source, cross platform clipboard manager with tons of features.

One example option is being able to only ever paste plain text. It also has lots of programming hooks, I have a few for doing things like converting a line-feed delimited list into one delimited by commas and quoting the values.

permalink
report
reply
4 points

I like vim and use it almost every day, but sometimes I miss Strg+D and Alt+F3 from Sublime (multi edit). Block select + c isn’t as useful as this.

permalink
report
reply
1 point

Give the Kakoune editor a try for native multi cursor editing. Or better yet, if you are a developer, the Helix editor.

I’m a web developer and transitioned quite seamlessly to the Helix editor from Visual Studio Code without much hassle.

The Helix editor is growing and gaining new functionality all the time.

permalink
report
parent
reply
3 points

the vim-visual-multi plugin tries to do this. It takes some time to get the hang of it, but, even if using only the simplest features, it’s way better than not having the option.

permalink
report
parent
reply
2 points

Works like a charm. Thanks again. Even mouse selection.

permalink
report
parent
reply
2 points

Thank you, I will try it.
Seems that I need to remap a few keys like for NerdTree and my tab switch.

permalink
report
parent
reply
30 points

Y’all haven’t heard of Windows clipboard history? Windows + V will change your life, I tell ya!

permalink
report
reply
0 points

Last I checked you have to enable it, which is annoying.

permalink
report
parent
reply
4 points

To be fair it may be a security concern if someone is copy pasting passwords

permalink
report
parent
reply
5 points

Keeping their admin password in the history so they don’t have to alt+tab to their Secret Server webpage? W-who would do such a thing?!

permalink
report
parent
reply
2 points

Yeah, it floors me that it doesn’t look see a high-entropy 8+ character strings and not keep it.

permalink
report
parent
reply
3 points

I was going to mention that was a potential issue

permalink
report
parent
reply
14 points

You use it once, it asks if you want to enable, and you click literally one button.

permalink
report
parent
reply
8 points

Meanwhile, this was a feature on KDE-land since Klipper, which goes back (as far as I know and if I remember well) to KDE 3 or sooner.

permalink
report
parent
reply
6 points

There have been third party clipboard managers forever in windows, which is kind of funny because that is almost more like the unix philosophy than expecting the UI system to handle it all.

permalink
report
parent
reply
25 points

And I still don’t really know how to use registers in vim 😂 I just use yy and paste 🥲

permalink
report
reply
29 points
*

You just do " (listen for next character as register name)

Then, say q,w,e etc, then yy to yank as normal.

So "wyy

To retrieve it you use "wp

To add to it "Wyy

To view them :reg

Remember you can make "w anything, like "x or "p

And each time you yank it gets pushed into the default register history "0 "1 "2 etc

permalink
report
parent
reply
4 points

Ok I have to save that 🥲 thanks!

permalink
report
parent
reply
2 points

Great explanation. Thank you!

permalink
report
parent
reply
6 points

I didn’t know about registers, thank you for this!

permalink
report
parent
reply
5 points

I only know how to use them with q. I hope that’s a register, otherwise I will look foolish.

permalink
report
parent
reply
4 points

They are. Registers are just “named boxes” where you can store some text and/or keystrokes. When yanking and pasting, the unnamed register is used if you don’t specify a name (you can still see or edit it explicitly). For recording a macro there is no default register, though. You need to give it a name.

permalink
report
parent
reply
33 points

I can’t tell if ops joke is “intentionally confusing buffers with registers” and everyone is playing along or if people aren’t making the distinction between the two in this thread.

Which is ironic and humorous…potentially by accident.

permalink
report
reply
2 points

I kind of assumed that his comment was independent of the meme he posted and served more to underline a perceived power that vim has over other editors. In this case a power OP doesn’t even understand/use himself.

permalink
report
parent
reply
6 points

I’m an idiot and I think I confused the two haha

My thought process based on when I setup my config: “yank copies to my main ‘buffer’, <leader> yank copies to system clipboard through that special ‘buffer’, and <leader> delete deletes without replacing what’s in my main ‘buffer’. I have multiple clipboards!”

Completely forgot they’re called registers and that buffers are just “where text is” (at least as far as I understand it)

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

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

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 6.1K

    Monthly active users

  • 988

    Posts

  • 38K

    Comments