Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nathom/easy-replace.nvim

Quickly replace text without %s
https://github.com/nathom/easy-replace.nvim

Last synced: 8 days ago
JSON representation

Quickly replace text without %s

Awesome Lists containing this project

README

        

# easy-replace.nvim

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

## Installation

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

Two visual mode mappings are automatically installed: `r` and `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

```lua
require('easy_replace').replace_selection()
```

To ask for confirmation, pass `true` into `replace_selection`.