Search and replace
Sección: Programación
Creado: 15-04-19 (Actualizado: 02-05-19)
Vim provides the:s (substitute) command for search and replace; this tip shows examples of how to substitute. On some systems, gvim has Find and Replace on the Edit menu (:help:promptrepl), however it is easier to use the:s command due to its command line history and ability to insert text (for example, the word under the cursor) into the search or replace fields. The:substitute command searches for a text pattern, and replaces it with a text string. There are many options, but these are...
https://vim.fandom.com/wiki/Search_and_replace