In Gvim, the command for paste in the menu is "+gP
My understanding is that " indicates I'll be pasting from a specific register, + indicates the register (some sort of global shared register? the clipboard?), and P is the paste command.
However, this leaves the g unexplained. What does it do?
The g command first scans all lines in range and marks those that match pattern . It then iterates over the marked lines and executes cmd . (See multi-repeat in vim's documentation). If cmd happens to delete a marked line, the mark disappears.
Press 0 to go to the beginning of a line, or ^ to go to the first non-blank character in a line. Save this answer.
Cutting in VimUse the d key when performing this operation. If you are using Vim in normal mode, you can easily cut or delete text using the d command.
r (replace) never enters insert mode at all. Instead, it expects another character, which it will then use to replace the character currently under the cursor.
See :help gP
:
Just like "P", but leave the cursor just after the new text. {not in Vi}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With