1

I have the following text:

#Text

My cursor is on character T; I want to obtain

# Text

i.e., to put a space between # and T, without "pressing i and then space". Instead, I want to do so in one single command without mapping. Is there any pre-defined shortkey for this?
Thanks

5
  • 2
    Why should it? If you believe you need it, then create a mapping of your own. If you say "I don't want a mapping" then don't.
    – Matt
    Commented Feb 1, 2021 at 7:28
  • @Matt I was wondering if there is a shortkey because it is fun and also beautiful to do the modifications this way. My inspiration for asking this question was the shortkey diw; I was wondering if there is, something like <space>iw.
    – Naghi
    Commented Feb 1, 2021 at 7:39
  • 1
    diw is not "a shortcut". It's "delete" applied to "inner word" text object. It's not so hard to create "prepend space" thing and to apply it to any existing text object, but (a) not everyone will find it useful, and so it's not in the core, (b) it'll be a mapping.
    – Matt
    Commented Feb 1, 2021 at 8:04
  • @Matt Thanks, I suppose your saying as the answer, so will accept it if you post.
    – Naghi
    Commented Feb 1, 2021 at 8:24
  • Welcome to Vi and Vim!
    – D. Ben Knoble
    Commented Feb 1, 2021 at 12:37

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.