The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Search And Replace In Neovim And Vim

TODO: Pull subtitle into page object

## Everywhere in the file

code_start_default_section code_end_default_section

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Search And Replace In Neovim And Vim

-- p

## Everywhere in the file

-- code/

:%s/foo/bar/g

-- /code

-- p

## On the current line

-- code/

:s/foo/bar/g

-- /code

-- p

## Change on current line and next two lines (+2)

-- code/

:.,+2s/foo/bar/g

-- /code

-- p

Change in each line starting with 'baz'.

-- code/

:g/^baz/s/foo/bar/g

-- /code

-- p

## In all open tabs

-- code/

:tabdo %s/foo/bar/g

-- /code

-- p

## Change only on specific lines

-- code/

:5,12s/foo/bar/g

-- /code

-- p

## Change all lines from mark `a` to mark `b` inclusive.

-- code/

:'a,'bs/foo/bar/g

-- /code

-- p

## Change from the current line (.) to the last line ($) inclusive.

-- code/

:.,$s/foo/bar/g

-- /code


-- categories
-- Miscellaneous

-- metadata
-- date: 2021-11-02 12:12:07
-- id: 20eoda8a
-- status: scratch
-- type: post
-- SCRUBBED_NEO: false
-- site: aws