traces.vim


Ⅰ. 插件描述

Range, pattern and substitute preview for Vim

Ⅱ. 基本信息

创建日期:  2017-09-18
使用用户:  120
Github星:  430
插件作者:  markonm

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'markonm/traces-vim-left-unsaid'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'markonm/traces-vim-left-unsaid'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'markonm/traces-vim-left-unsaid'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/markonm/traces.vim

Ⅳ. 文档说明

# 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.vimVim*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

添加新评论