Friday, May 11, 2018

Re: vi commands

About point 2, these commands copy rows or words while I'm interesting to copy and paste marking both beginning and end of block, is't possible?

> On 6 May 2018, at 23:01, Tony Mechelynck <antoine.mechelynck@gmail.com> wrote:
>
> On Sun, May 6, 2018 at 10:15 AM, sampei02@tiscali.it
> <sampei02@tiscali.it> wrote:
>> I need to understand if VI can permit these operations:
>>
>> 1- to move cursor to next word, does it exist key-bindings to make it?
>> 2- select specific part of text to copy it and to past it to another area inside the same file.
>> 3- to insert tabs for indentation in multiple row, e.g. to move " if " instructions group in C code; I usually follow these steps moving cursor at the beginning of first line: esc' + 'I' , insert tab by press 'tab' key, 'esc' again, press 'j' (next row), esc' + 'I' , 'tab' key, … If I had many rows it will occur much time, is there way to speed up?
>>
>> Thanks
>
> 1. see :help w
> 2. see
> :help y
> :help :yank
> :help p
> :help P
> :help :put
> :help visual.txt
> 3. By selecting a rectangular block of text with Ctrl-V (in Normal
> mode) then moving the cursor, I (that's capital i) will repeat the
> text you insert (anything, including hard tabs) in front of the block
> at every line. Similarly with A (append) to insert after every line of
> the block.
>
> ...and BTW, a good way to get acquainted with Vim is to run the
> vimtutor program.
>
> Best regards,
> Tony.
>
> --
> --
> 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.

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