2

I once saw a feature in Vim where, when I delete the text to the left of the cursor, the text is indeed deleted. However, a faint impression of the text remains in its original place, as shown in the figure below.

The original text was

alias ll='ls -l'■

After deleting to the left, it becomes

enter image description here

The right side of the cursor shows the text that originally existed there to remind me what I just deleted. They won't be retained in the final saved file.


The advantages of this are self-evident. I want to ask if there's a package in Emacs that can implement a similar feature.

2
  • What is the name of this Vim feature ? Jun 17, 2023 at 17:33
  • @TristanRiehs: Sorry, I'm not a Vim expert, I didn't think to proactively check out a feature's name, and I don't know how to do that. I experienced this feature on a Vim with an existing configuration, and I haven't touched that Vim since. But I'll update this question if I find useful information.
    – shynur
    Jun 17, 2023 at 17:52

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.