Sunday, May 6, 2018

Re: use Vi editor

On 06.05.18 12:42, Renzo Marengo 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

Answers:
a) 1-3, Yes.
b) 1-2, type ":help intro" into vim.
3, ":help autoindent", ":help formatoptions", ":helpgrep cindent", ":helpgrep smartindent"
c) 1-3, google "vim tutorial"

Trying out what you read makes the learning experience more effective,
and entertaining.

Erik

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