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

Tag: replace

April 25, 2022

Making small changes 4.3 (64)

Use r to replace a single character in Vim.

Andy Libby
Andy Libby
March 7, 2022

Changing regex delimiters 4.7 (86)

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

Colin Bartlett
Colin Bartlett
August 16, 2021

Print substitutions 4.8 (34)

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

Colin Bartlett
Colin Bartlett
February 15, 2021

Go to next match and select 4.8 (89)

Use gn to build up repeatable operations on searched patterns.

Colin Bartlett
Colin Bartlett
February 11, 2021

Confirm replacements 4.4 (50)

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

Colin Bartlett
Colin Bartlett
October 5, 2020

Replace across files 4.1 (194)

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

Colin Bartlett
Colin Bartlett
August 24, 2020

Repeat the last substitution 3.7 (230)

Vim has several useful ways to repeat the last substitution.

Colin Bartlett
Colin Bartlett
May 11, 2020

Non-greedy regex in Vim 3.9 (346)

Match more accurate patterns by using non-greedy matching.

Andy Libby
Andy Libby
April 9, 2020

Stay in Search Mode 3.8 (341)

Search faster in Vim with an improved workflow

Colin Bartlett
Colin Bartlett

Get the Newsletter

Search the Archives

Our Books

  • Git Better with Vim

    Git Better with Vim

Recent Vim Tips

  • Edit multiple lines at once in Vim

  • Get the current file path

  • Closing hidden buffers

  • Making small changes

Widgets

Top Rated Vim Tips

4.9 (114)

Copying and pasting lines

4.9 (40)

Investigate characters

4.8 (71)

Insert special • characters ◆

4.8 (47)

Reselect pasted text

4.8 (48)

Improving usage of registers

Vim Tips by Tag

args books buffers case commands commenting courses ebooks ex filter flog fugitive git global indenting insert interface mappings markdown marks math motions navigation netrw notes patterns plugin plugins quickfix regex registers replace search shell skeleton snippets splits substitution template text-objects unimpaired vim vimrc visual web

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.

Links

© Copyright 2020 Nimble Industries, Inc.
Click to Copy