Skip to content
Range, pattern and substitute preview for Vim
Vim script
Branch: master
Clone or download

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
autoload Stay at the current window while adding matches to other windows Jan 22, 2020
doc Support '\&' range specifier Nov 14, 2019
img Delete example2.gif Jan 17, 2018
plugin Add hl-TracesReplace Jul 12, 2019
test Fix incorrect preview of pattern specifier in certain positions Apr 3, 2019
.gitignore Bump version Jan 21, 2019
LICENSE Bump version Jan 21, 2019
README.md Update README.md May 14, 2019

README.md

traces.vim

Overview

This plugin highlights patterns and ranges for Ex commands in Command-line mode.

It also provides live preview for the following Ex commands:

:substitute
:smagic
:snomagic

Requirements

Vim v8.0.1206+

or

Neovim v0.2.3+

  • this plugin is not compatible with inccommand, please turn it off if you want to use this plugin

Note: some of the features provided by this plugin are already present in Vim/Neovim.

traces.vim Vim* Neovim
:substitute preview
pattern preview for :substitute
pattern preview for :global, :vglobal, :sort
pattern preview for :vimgrep
range preview
partial off-screen results in a preview window

* added by patch v8.1.0271

Example

example

Installation

Linux

git clone https://github.com/markonm/traces.vim ~/.vim/pack/plugins/start/traces.vim

Run the :helptags command to generate the doc/tags file.

:helptags ~/.vim/pack/plugins/start/traces.vim/doc

Windows

git clone https://github.com/markonm/traces.vim %HOMEPATH%/vimfiles/pack/plugins/start/traces.vim

Run the :helptags command to generate the doc/tags file.

:helptags ~/vimfiles/pack/plugins/start/traces.vim/doc

Inspiration

You can’t perform that action at this time.