Christian Brabandt wrote:

> On Do, 19 Sep 2013, Christian Brabandt wrote:
> 
> > On Thu, September 19, 2013 17:00, Bram Moolenaar wrote:
> > >
> > > Christian Brabandt wrote:
> > >
> > >> On Do, 12 Sep 2013, shawn wilson wrote:
> > >>
> > >> > Can vim be made to DWIM here? I did a quick search and found I'm not
> > >> the
> > >> > only one who has run into this. For example:
> > >> > http://briancarper.net/blog/341/
> > >> >
> > >> > Just to re-explain what I want: when you visually select a block, you
> > >> can
> > >> > change or insert and it will change the block but when you paste a
> > >> single
> > >> > line buffer (I can see how this might get not be so simple for pasting
> > >> > multiple lines) it only changes the first line. The "fix" of using C+R
> > >> in
> > >> > insert mode as was mentioned works, but the behavior isn't what I
> > >> expect.
> > >>
> > >> Try the attached patch.
> > >
> > > I'm missing something here: How do you paste?
> > 
> > using 'p' or 'P'. It will only be repeated, if the pasted part
> > is a characterwise and a single line.
> > 
> > > These block operations have had bugs in the past.  If we make changes in
> > > this code it would be a good idea to at least have some basic tests.
> > 
> > I can add a test.
> 
> Attached is an updated patch, including a test and documentation.

Great, thanks.


-- 
hundred-and-one symptoms of being an internet addict:
238. You think faxes are old-fashioned.

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

Raspunde prin e-mail lui