1

I'm trying to type "vie", "cie" and "die", and their behaviors are both operating on the entired file, i.e. "vie" selects the whole file text, "cie" and "die" deletes the whole file text, what's the Intuitive explanation for this ? enter image description here

1

1 Answer 1

2

The e is for "entire".

This behavior for ie has probably originated from Vim plug-in kana/vim-textobj-entire, which defines text objects ie and ae for the entire buffer.

Text objects typically start with either i or a, where i stands for "inside" (usually the text object without including delimiters) and a for "around" (including delimiters around the text object.)

Vim keybindings in VS Code include a few extras (from base Vim) that come from popular plug-ins (such as vim-surround, etc.) They probably included ie from this plug-in as well.

Documentation for the VS Code Vim extension mentions vim-textobj-entire explicitly, together with all other Vim plug-ins the extension emulates.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.