Christian Brabandt wrote:
> > > Bram,
> > > when using visual block_mode and replacing the selected block with=20
> > > <Enter>, Vim currently does not break the line, but inserts the=20
> > > linebreak literally, e.g. when doing this:
> > >
> > > 10o12345<ESC>9k02l<C-V>9jr<CR> you are left with:
> > > 12^M45
> [...]
> > >
> > > instead of
> > > 12
> > > 45
> > > 12
> > > 45
> > > [...]
> > >
> > > Attached patch fixes this and adds a test.
> >
> > Thanks. I haven't tried it yet, but does it allow using CTRL-V <CR>
> > to insert a literal CR as before?
>
> No it doesn't. Problem is, by the time op_replace is called, one doesn't
> know, whether it was typed literally. How about using -1/-2 to
> distinguish between typing CR/LF literally?
Hmm, sounds a bit tricky. I'll have to look into it later (very busy
this week, probably next week too).
Can you add a test for this specific situation? It can easily break
when some other code kicks in.
--
ARTHUR: Ni!
BEDEVERE: Nu!
ARTHUR: No. Ni! More like this. "Ni"!
BEDEVERE: Ni, ni, ni!
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.