Skip to content

⚡ evil operator to replace chars of a text object with a char

License

Notifications You must be signed in to change notification settings

ninrod/evil-replace-with-char

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

⚡ evil operator to replace chars of a text object with a char

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published