VimTricks
  • Vim Newsletter
  • Archive
  • Vim Books
  • About
  • Vim Newsletter
  • Archive
  • Vim Books
  • About

Tag: replace

April 25, 2022

Making small changes 4.2 (73)

Use r to replace a single character in Vim.

Andy Libby
Andy Libby
March 7, 2022

Changing regex delimiters 4.4 (122)

Use any delimiter in your regular expression to avoid escaping slashes.

Colin Bartlett
Colin Bartlett
August 16, 2021

Review Replacements in Vim 4.7 (68)

Use Vim’s global command to print substitutions when replacing.

Colin Bartlett
Colin Bartlett
February 15, 2021

Vim Find Next 4.8 (104)

Find the next match and change it in Vim. Using Vim’s search next feature with gn, you can quickly build repeatable changes.

Colin Bartlett
Colin Bartlett
February 11, 2021

Confirm replacements 4.5 (55)

Use the /c flag to confirm each replacement when substituting.

Colin Bartlett
Colin Bartlett
October 5, 2020

Replace across files 4.1 (198)

Use the args list to globally replace across files without plugins.

Colin Bartlett
Colin Bartlett
August 24, 2020

Repeat the last substitution 3.7 (238)

Vim has several useful ways to repeat the last substitution.

Colin Bartlett
Colin Bartlett
May 11, 2020

Non-greedy regex in Vim 3.9 (364)

Match more accurate patterns by using non-greedy matching.

Andy Libby
Andy Libby
April 9, 2020

Stay in Search Mode 3.8 (348)

Search faster in Vim with an improved workflow

Colin Bartlett
Colin Bartlett
Loading

Search the Archives

Our Books

  • Git Better with Vim

    Git Better with Vim

Recent Vim Tips

  • Inspect Character Under Cursor in Vim

  • Vim Calculator

  • Vim split to a specific size

  • Vim Command Line Window

Widgets

Top Rated Vim Tips

4.9 (60)

Interactive replace across files

4.8 (72)

Inspect Character Under Cursor in Vim

4.8 (33)

Toggle Vim boolean options

4.8 (136)

Pasting multiple times

4.8 (104)

Vim Find Next

Vim Tips by Tag

alignment args autocmd autocomplete books buffers case checkbox checkboxes commands config courses csv ebooks filter folding fugitive git indenting insert interface mappings markdown motions native navigation netrw notes patterns plugin plugins quickfix regex registers replace search shell splits substitution text-objects unimpaired vim vimrc visual whitespace

About VimTricks

Colin and AndyVimTricks is published by Colin Bartlett and Andy Libby, two Vim enthusiasts and software developers with more than 40 years combined experience with Vim.

Have a Vim tip? Email us! [email protected]

Links

Copyright © 2022 Nimble Industries, Inc.
SSL Certificate Monitoring by TrackSSL
Click to Copy