Skip to main content
2 of 2
deleted 1 character in body
peterh
  • 1.2k
  • 3
  • 16
  • 35

How to search and replace more than character and a string in vim

I know it should be easy, but somehow I don’t get it right.

I've got a text with artist_id, album_id,... and want to replace them with just id.

How do I do that?

I tried :%s/[a-z]+_id/id/gc, but it did not work.