Tuesday, May 22, 2012

Re: Inserted text missing from blank lines after ctrl-V, vertical highlight, ctrl-I

On May 22, 12:25 pm, Ben Fritz <fritzophre...@gmail.com> wrote:
> On Tuesday, May 22, 2012 11:03:34 AM UTC-5, AndyHancock wrote:
> > I am working on a source code file with many blank lines (lines
> > containing zero characters, not even white space).  The cursor is on
> > (say) column 5 and I press ctrl-V before highlighting a column of
> > text.  I then press ctrl-I to insert a comment character in the
> > highlighted text column.  The comment character does *not* appear at
> > all in the lines that are blank.
>
> > I could be mis-remembering, but I don't seem to recall this behaviour
> > in the past.  I thought I had vim in a mode where ctrl-V would put in
> > the required white space to achieve the visual effect, regardless of
> > whether or not the whitespace was there before.  Is this a recent
> > change in the behaviour of vim, or is there a specific setting which I
> > might have muddled up in my romps through vimrc?
>
> I think you need to tweak your 'virtualedit' setting.
>
> I have mine at "block" and expect it to work on blank lines, and
> recently discovered it does not. I do not know whether this is a
> recent addition or whether it's always been that way, but setting it
> to "all" lets it work as I'd expect.

That's funny. I have it set to all. :(

--
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

No comments: