lk/vim/vim search.md

13 lines
179 B
Markdown

---
title: "search"
tags: [ "Documentation", "vim" ]
---
Search and replace the first 'one' found with 'two':
> :%s/one/two/
Same, but replace 'one' globally:
> :%s/one/two/g