You are viewing a single thread.
View all comments View context

gg/un2x?-d/like

FTFY

permalink
report
parent
reply
2 points
*

I’m not planning on googling that πŸ˜’.

permalink
report
parent
reply

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!

permalink
report
parent
reply
0 points
*

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.

permalink
report
parent
reply

linuxmemes

!linuxmemes@lemmy.world

Create post

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!

Community stats

  • 7.5K

    Monthly active users

  • 1.2K

    Posts

  • 66K

    Comments