On 12/14/2010 01:56 PM, Benjamin R. Haskell wrote:
On Tue, 14 Dec 2010, AK wrote:

On 12/14/2010 01:31 PM, rameo wrote:
On Dec 14, 7:13 pm, AK wrote:
On 12/14/2010 12:56 PM, rameo wrote:

There are 2 things in VIM that I still don't know how to do:

1) [...]

2) pasting over text without moving the layout alround.
I does not work in replace mode and not in virtual replace mode.
Both changes the layout after the inserted text.
Is there a way to resolve this?

E.g. using visual block mode (ctrl-V): select a block, copy; select
a block of the same dimensions, 'p' to paste. That does not move
layout for me. -ak

Maybe that is possible for a visual block but almost impossible for a
usual selection.

I just want to overwrite the text as I do, using the (virtual)replace
mode.


Not sure I understand, in characterwise selection, I can e.g. select 5
chars, copy, select 5 chars somewhere else and layout is not affected.
If you select more or less chars, do you want vim to discard extra
chars in latter case and pad with spaces in former? -ak

It sounds like rameo wants something like the behavior of:

:h Replace-mode.

I've wanted something like this for a while, too. Not sure what I
usually end up doing when I encounter it.

Simple example:

Original text: aaaaaaaaaaaaa
Yanked text: bcdef

Pasted-over text would end up as:

Example 1: Example 2:
aaaaaaaaaaaaa aaaaaaaaaaaaa
^ ^
abcdefaaaaaaa aaaaaaaaaaabcdef



I think you can do this with R then ctrl-r "  , right?  -ak

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

Reply via email to