evil operator to replace all chars of a text object with a char.
place the file in your load-path and write (require 'evil-replace-with-char)
in your ~/.emacs.d/init.el
.
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
.
- cursor is on
[]
| [] |
-> zxi|-
|----------|
- you can customize
replace-with-char
’s binding as follows:
(define-key evil-normal-state-map "gR" 'evil-operator-replace-with-char)
GNU General Public License v3
Copyright (c) 2017 Filipe Silva (ninrod)