Skip to content

Latest commit

 

History

History
14 lines (9 loc) · 279 Bytes

find-and-replace.md

File metadata and controls

14 lines (9 loc) · 279 Bytes

Find and Replace in Vim

Back{: .button}

Syntax:

:[range]s[ubstitute]/{pattern}/{string}/[flags] [count]

Example:

  • Replace all occurances of nimalan with mark :%s/nimalan/mark/g
  • Replace 4 occurances of a with o :%s/a/o/g 4