Monday, May 21, 2018

Re: vi commands

I tried to select rows by ctrl-v but with '>' key text is indented to different space vs tabstop.
E.g. my tabstop is set to default as 4 value and > indent rows to 8 spaces.
how can I tune it?

> On 6 May 2018, at 23:07, David Woodfall <dave@dawoodfall.net> wrote:
>
> On Sunday 6 May 2018 10:15,
> sampei02@tiscali.it <sampei02@tiscali.it> put forth the proposition:
>> I need to understand if VI can permit these operations:
>
> See :help movement
>
>> 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
>
> One way is to select the lines of code that you need indenting with
> shift+v and scrolling down, then press >
>
> -Dave
>
> --
> --
> 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:

Post a Comment