0

If I select several lines in visual block mode and then append it works, for example:

<C-v>jjj$A;<ESC>

will append a semicolon to 4 lines. However if select a paragraph it does not work. For example:

<C-v>ip$A;<ESC>

does not work. Why is this?

5

It doesn't work because using a text-object switches to visual-line mode.

Do:

vip<C-v>

instead of

<C-v>ip

See :help ip.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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