⚡️ evil operator to replace chars of a text object with a char
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
.travis.yml
Makefile
evil-replace-with-char.el
license.md
readme.org

readme.org

evil-replace-with-char

https://travis-ci.org/ninrod/evil-replace-with-char.svg?branch=master https://melpa.org/packages/evil-replace-with-char-badge.svg http://stable.melpa.org/packages/evil-replace-with-char-badge.svg https://img.shields.io/badge/license-GPLv3-blue.svg

evil operator to replace all chars of a text object with a char.

Installation

place the file in your load-path and write (require 'evil-replace-with-char) in your ~/.emacs.d/init.el.

Usage

This package provides an evil operator, zx to replace all chars of a text object with a char. You can customize the binding.

Try using zxiw.

Examples

  • cursor is on []
|     []    |
-> zxi|-
|----------|

Customization

  • you can customize replace-with-char’s binding as follows:
(define-key evil-normal-state-map "gR" 'evil-operator-replace-with-char)

LICENSE

GNU General Public License v3
Copyright (c) 2017 Filipe Silva (ninrod)