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

Tag: patterns

August 29, 2022

Vim Search Visual Selection 4.4 (84)

You can search a visual selection in Vim by using one of the built in Vim regular expression features called atoms.

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
January 3, 2022

Clear search highlight 4.5 (41)

Clear the annoying persistent search highlight in Vim with any of these methods.

Colin Bartlett
Colin Bartlett
November 12, 2020

Insert matched pattern 4.6 (240)

Use this trick for swift find and replace.

Colin Bartlett
Colin Bartlett
November 9, 2020

Operate until pattern 4.5 (242)

Change, edit, or yank all the text until a pattern.

Colin Bartlett
Colin Bartlett
November 2, 2020

Vim Search Ignore Case 3.7 (185)

Ignore case in Vim search with a combination of the ignorecase and smartcase options in your config.

Colin Bartlett
Colin Bartlett
June 28, 2020

Count Occurrences 3.6 (372)

Get a pattern match count quickly with this one simple Vim trick.

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