Skip to content

Instantly share code, notes, and snippets.

@Axlefublr
Last active September 1, 2024 11:00
Show Gist options
  • Save Axlefublr/7254c5d9dc583ad0a0acd4c6b07a9f55 to your computer and use it in GitHub Desktop.
Save Axlefublr/7254c5d9dc583ad0a0acd4c6b07a9f55 to your computer and use it in GitHub Desktop.

You may sometimes want to set a bunch of multicursors on a lot of lines, where just holding C and letting key repeat do the job is a bit bothersome.
So you mip to select inside paragraph, and use s to set cursors how you usually would with C, but with far less keystrokes

rec.mp4

Doing this feels illegal fwiw, but it's actually super valid for this usecase, where you want to act on a certain column, rather than anything that you can regex match by text.
If you know exactly how many columns you need to match, you could also just ^.{30} or something, but I generally don't know.
Regex is really powerful in theory, really fun to learn how to use it more creatively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment