On 05/08/14 01:37, Francis (Grizzly) Smit wrote:
I sometimes want to paste with a keyboard short cut but obviously ^V
doesn't work, in GVim cut copy and paste are available on the tool bar,
what keyboard short cuts are there to do this ?? I cannot find it in help



As others have already told you, e Vim names for "cut","copy" and "paste" are "delete", "yank" and "put" respectively, and the clipboard is accessed as the + and * registers; As already said, on Windows both are the same; on X the + register is what Edit→Copy, Edit→Cut and Edit→Paste (in gvim and in other programs used) while the * register is what most other programs use for select and MiddleMouse.

I'll add that:
1) If you had looked at the gvim menus, you would have found near the right margin the equivalent keyboard command; they are however slightly different if you aren't in Normal mode; 2) each of Delete, Yank and Put exist as both a Normal-mode command (which can be preceded by a register and followed by a movement or object, and can be characterwise, linewise or blockwise) and as an ex-command (which can be preceded by a range and is always linewise).

Examples:

:$-5,$d +
        cut the last 6 lines into the clipboard
:$put +
        paste after the last line
:0put +
        paste before the first line
5:y +
        which Vim changes into
:.,.+4y +
        copy the current line and the 4 lines after it (for a total of 5)
"+dd
        cut the current line to the clipboard
"+diw
        cut the current word (without the surrounding space)
"+ya"
        copy the current quoted string (with its quotes, and the space on one 
side)
"+p
        paste after the cursor
"+P
        paste before the cursor

etc.

For more details, see

        :help "*
        :help "+
        :help p
        :help P
        :help y
        :help d
        :help :put
        :help :yank
        :help :delete
        :help [range]
        :help motion.txt
        etc.


Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
138. You develop a liking for cold coffee.

--
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to