this post was submitted on 27 Dec 2023
152 points (75.5% liked)

linuxmemes

20686 readers
747 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. 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
[โ€“] 0x4E4F@sh.itjust.works 2 points 8 months ago* (last edited 8 months ago) (1 children)

I'm not planning on googling that ๐Ÿ˜’.

[โ€“] dipshit@lemmy.world 5 points 8 months ago* (last edited 8 months ago) (1 children)

result: Very intuitive like vim.

  1. gg - top of the file
  2. /un - find โ€œunโ€ place cursor at u
  3. 2x - remove 2 characters
  4. ?- - search backwards for the character -
  5. d/like - delete everything up until the characters like

See, intuitive!

[โ€“] 0x4E4F@sh.itjust.works 0 points 8 months ago* (last edited 8 months ago) (2 children)

I don't do that much search and replace in any terminal based text editor to actually use that on a regular basis. If I need edits like that, I use a GUI text editor.

[โ€“] dipshit@lemmy.world 2 points 8 months ago

Sure, I just hate moving from mouse to keyboard every few seconds as I code.