I'm a begginer in the use of the vi, and I have a bit
question: How can I copy a text between differents windows ?


You'll want to specify the "*" (or "+") register in your yank/deletes, such as

        "*yy

to yank the current line into the system clipboard, or

        "*dap

to cut the current paragraph into the system clipboard.

This is also then used for pasting, as in

        "*p

The distinction between the "*" and "+" register is only significant (AFAIK) on X-Window systems, with the "*" being the "selection" (what usually gets pasted with the middle-mouse-button) and the "+" being the "clipboard" (what's available for pasting in most apps with control+V).

If you always want every change to go into the system clipboard without manually specifying it, you can change your 'clipboard' option to include "unnamed", as described in

        :help 'clipboard'

In addition, the material at

        :help clipboard
        :help gui-clipboard
        :help quotestar

may prove enlightening.

-tim




Reply via email to