On 12/14/2010 01:31 PM, rameo wrote:
On Dec 14, 7:13 pm, AK<[email protected]> 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) select a line and go to another line.
p.e. I select line 55 and want to enlarge my selection to line
247.
normally I use "247G" but in visual?
247G
hmmmm.. Why didn't I try this in Visual.
I tried everything in the commandline but nothing what I did worked.
So easy... thank you.
I always use gg, I think it's easier to hit g two times than shift
and g..
I know that I can do this by motion keys "192L" (L = my down key)
but then I have to calculate every time how many lines I have to go
downwards.
a) is there a way to do this?
b) is there a way to insert also a start line?
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
--
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