GitHub - ninrod/evil-replace-with-char: evil operator to replace chars of a text...
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
-
122
EXATO: Evil XML Attributes Text Object
-
1
Copy link Contributor klensy commented
-
1
Copy link Contributor Herschel...
-
23
-
33
I tried to reset my password to a random alphanumeric string, 64 characters in length. Initially, my password only had lower case letters and numbers. Zoom refused to allow me to use this string because it didn’t h...
-
6
ExternalInterface Bug with new line chars Tuesday, January 10, 2006 A couple of days ago I ran into a bug with ExternalInterface which caused me quite a hassle (a couple of
-
4
Conversation The PR implements DoubleEndedIterator trait for ToLowercase and ToUppercase. This enables reverse iteration of lowercase/uppercase variants...
-
2
One line of code (JS) (33 Part Series) const htmlSpecialChars = str => str.replace(/[&"'<&g...
-
2
New issue [chars_next_cmp] Fix unescaped suggestion #8376
-
2
Copy link Contributor thomcc commented...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK