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

linuxmemes

20880 readers
4 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
[โ€“] [email protected] 2 points 10 months ago* (last edited 10 months ago) (1 children)

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

[โ€“] [email protected] 5 points 10 months ago* (last edited 10 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!

[โ€“] [email protected] 0 points 10 months ago* (last edited 10 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.

[โ€“] [email protected] 2 points 10 months ago

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