this post was submitted on 09 Dec 2023
185 points (94.3% liked)
linuxmemes
20473 readers
788 users here now
I use Arch btw
Sister communities:
- LemmyMemes: Memes
- LemmyShitpost: Anything and everything goes.
- RISA: Star Trek memes and shitposts
Community rules
- Follow the site-wide rules and code of conduct
- Be civil
- Post Linux-related content
- No recent reposts
Please report posts and comments that break these rules!
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Bonus tip:
ci" means change inside "" ca" means change around ""
the " can be replaced with any of:
({[wspbt
For changing inside or around parentheses, curky brackets, square brackets, words, sentences, paragraphs, code blocks and HTML tags respectively.
So for example if you want to replace all parameters in a function call you just do ci(
But that's not all, the c is one of the possible operators, but not the only one.
di{ deletes the content of a block ya[ copies the content of something inside square brackets g~iw swaps the case of a word guis makes a sentence lower case gUip makes a paragraph upper case
And the most useless one: g?at replaces the content of an HTML tag with its rot13
thanks for the insightful comment. I've saved it for future reference.