diff --git a/neovim-basics/search-replace/index.html b/neovim-basics/search-replace/index.html index 7477e142..9ed99de3 100644 --- a/neovim-basics/search-replace/index.html +++ b/neovim-basics/search-replace/index.html @@ -2522,42 +2522,51 @@

Search and Replaceλ︎

-

Search and replace within the current line or buffer:

+

Search and replace within the current buffer:

Search and replace across a project:

-
-Multiple cursors for multiple substitutions -

g m A with the cursor on a word will start multiple cursors with a cursor on each occurance. Vim-editing tools can be used to replace the text at all cursors simultaneously

-

Buffer wideλ︎

+
+
+
+

g m A uses visual-multi multiple curses to match all instances of the selected text and in-place editing

+

Vim-editing tools can be used to replace the text at all cursors simultaneously.

+
+

multiple cursors in more detail

+
+
+

Replace all occurances of the current-pattern with the new pattern within the buffer.

:%s/current-pattern/new-pattern/g
 
+

Add the c option to confirm each replacement

Further examples of :substitue neovim command

+
+
+

Project wideλ︎

Evaluating...

-
+

Spectre is available via the AstroNvim Community project pack and included in the Practicalli astronvim-config

Space s is the search and replace menu

+

nvim-spectr

ripgrep and sed are required.

Spectre

-
-
-
+

Vims new :cdo command

Neovim :help :cdo @@ -2623,6 +2632,9 @@

Project wide Otherwise it works the same as `:ldo`.

+
+ +