Skip to content

find and replace

find

  • /findthis - will find the occurrences of findthis
  • n - will take you to the next occurrence
  • b - will take you to the previous occurrence

replace

  • [range]s/{pattern}/{string}/[flags] [count] will replace pattern with string, in the given range, and will use the given flags
  • g flag means global