From fbdc2360dc9db57983b14d5f93a561c5c4bb5ccb Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Wed, 15 Jan 2020 02:05:53 +0100 Subject: [PATCH] add vim search --- vim/search.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 vim/search.md 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 +