Thursday, January 28, 2016

Re: insert deselects rectselection

Hi Christian!

Christian Brabandt <cblists@256bit.org> writes:

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

I see... and <Esc> then is the (sql-like) commit of the current
transaction/operation?

I'm quite new to vim and i read the visual-mode helpfile, but i did not
find a hint about this difference between <Esc> and <Ctrl-C> (both exit
visual mode).

Where do i need to read further about things like these... i suppose
this is "vim-basic-just-have-to-know"-stuff?

Christoph

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