Thursday, January 28, 2016

Re: insert deselects rectselection

Hi christoph.kliemt!

On Do, 28 Jan 2016, christoph.kliemt@pgxml.net wrote:

> Ben Fritz <fritzophrenic@gmail.com> writes:
>
> > On Thursday, January 28, 2016 at 4:57:50 AM UTC-6, christoph.kliemt@pgxml.net wrote:
> >> Hi,
> >>
> >> i select a rectangular region with Ctrl-v and some cursor movement
> >> commands.
> >> Next, i want to append some chars to every column of the rectangle
> >> typing A.
> >> This puts vim into insert-mode (as expected), but unselects the region
> >> (not expected) so that the insert command only affects the line where
> >> the cursor is.
> >> Is this the expected behaviour?
> >>
> >
> > It's expected that the visual block goes away, and your edit will only
> > appear on a single line while you are in insert mode.
> >
> > But when you hit <Esc> to leave insert mode after appending your text,
> > the change should get applied to every line anyway. Doesn't this
> > happen for you?
>
> Hmmm... happens as expected when i use <Esc>, but if i use <Ctrl-C> to
> leave visual mode, nothing happens; both end visual mode. Why is this?

Always think of Ctrl-C of aborting your current operation.

Best,
Christian
--
Die Kreatur ist sehr schwach; denn sucht sie etwas, findet sie's
nicht. Stark aber ist Gott; denn sucht er die Kreatur, so hat er sie
gleich in seiner Hand.
-- Goethe, Maximen und Reflektionen, Nr. 623

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