Skip to content

find and replace

find

  • /findthis - will find the occurences of findthis
  • n - will take you to the next occurence
  • b - will take you to the previous occurence

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