ninrod / evil-replace-with-char

:zap: evil operator to replace chars of a text object with a char

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

About

:zap: evil operator to replace chars of a text object with a char

License:Other


Languages

Language:Emacs Lisp 94.3%Language:Makefile 5.7%