nathom / easy-replace.nvim

Quickly replace text without %s

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

easy-replace.nvim

Quickly find and replace without having to worry about %s and escaping characters.

Installation

use("nathom/easy-replace.nvim")

Two visual mode mappings are automatically installed: <leader>r and <leader>R. The first replaces the text selected with the inputted text throughout the file. The second requests for confirmation before replacing.

Custom usage

You can call the replacement function with

require('easy_replace').replace_selection()

To ask for confirmation, pass true into replace_selection.

About

Quickly replace text without %s


Languages

Language:Lua 77.3%Language:Vim Script 22.7%