diff --git a/vim/search.md b/vim/search.md new file mode 100644 index 0000000..ecf9262 --- /dev/null +++ b/vim/search.md @@ -0,0 +1,8 @@ +Search and replace the first 'one' found with 'two': + +> :%s/one/two/ + +Same, but replace 'one' globally: + +> :%s/one/two/g +