Sunday, May 6, 2018

Re: vi editor and special commands

If you really mean vi or vim in vi mode, then the options are somewhat limited.  If you're using vim it's somewhat better.  Vim in graphical mode probably makes this easy but I almost never use the graphical tool set, having started with vi when it was an AT&T proprietary product (read: I paid for it).

If you mean vim, then most of this is doable.
1. 'w' worked even in the old vi
2. Not the usual copy and paste.  But vim allows you to mark locations in the text, then delete or copy up to one of the marks.  Deleted or copied stuff goes into one of several paste buffers that you can re-insert where you like.
3. For human language text, manual indentation control.  For computer languages, depending on the language, vim may be able to do most of this for you if the filename has an extension that the software recognizes.

On Sun, May 6, 2018 at 1:02 PM, Renzo Marengo <buckroger2011@gmail.com> 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

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



--
Kevin O'Gorman
#define QUESTION ((bb) || (!bb))   /* Shakespeare */

Please consider the environment before printing this email.

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