Wednesday, September 16, 2015

Re: Visual blcok: Force insert ("I") to insert even in rows that have no characters

On 2015-09-16, 'Jürgen Krämer' via vim_use wrote:
> Hi,
>
> Paul schrieb am 16.09.2015 um 15:42:
> > When coding, I often press ctrl-V, highlight a column of text of a certain
> > height, then press "I" to insert (say) a comment delimiter or a line
> > continuation flag character. This doesn't quite work on short rows of text
> > that end before the column that I'm highlighting. I would like vim to
> > append the required spaces to permit the insertion. Is there a switch for
> > this?
>
> use "A" instead of "I". "A" will first pad short lines with white space
> to reach the required length.

Good suggestion. I wasn't aware of that difference between "I" and
"A".

I would have thought that setting ve=all would work, too, but it
doesn't. It's OK with me that it doesn't, but it's not what I
expected.

Regards,
Gary

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment