139

GitHub - ninrod/evil-replace-with-char: evil operator to replace chars of a text...

 6 years ago
source link: https://github.com/ninrod/evil-replace-with-char
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

evil-replace-with-char

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)

Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK